bas
|
| Posted: 04/16/2011, 1:06 AM |
|
Autofill - Warning:An unclosed string constant. Ln: 39, Col: 147.
Line 39:
new
Ajax.Request("services/prod2_store_products_price_PTAutoFill1.php?keyword="
+ encodeURIComponent($("store_productsprice").value).replace(/'/g, "%27"), {
Even the Ajax Samples by CodeCharge produce this error (different line no!)
so its not new!!
|
|
|
 |
Waspman
Posts: 948
|
| Posted: 04/16/2011, 7:24 AM |
|
I think it's only trying to clean up the keyword so it can be passed in the URL?
So if it were a name it would replace a space with %27.
There are some better brains on here who can answer this question.
It's not a bug in CCS. Just a coding error.
easily fixed 
Got my old grey matter working/learning - haha!
_________________
http://www.waspmedia.co.uk |
 |
 |
gerrit
Posts: 131
|
| Posted: 04/16/2011, 7:36 AM |
|
its just a coding error, if you genarate the page than it works good.
You can ask support.
gerrit
_________________
| http://www.vision.to | |
 |
 |
datadoit
|
| Posted: 04/16/2011, 7:39 AM |
|
Send to support please so that if it is a verifiable bug, they can fix
and provide a patch for all of us.
|
|
|
 |
bas
|
| Posted: 04/18/2011, 1:46 AM |
|
Ok - it doe get published
but then ....
Deprecated: Assigning the return value of new by reference is deprecated in
C:\wamp\www\NewProject2Ajax\DependentListBox2.php on line 77
Deprecated: Assigning the return value of new by reference is deprecated in
C:\wamp\www\NewProject2Ajax\DependentListBox2.php on line 84
Deprecated: Assigning the return value of new by reference is deprecated in
C:\wamp\www\NewProject2Ajax\DependentListBox2.php on line 273
Deprecated: Assigning the return value of new by reference is deprecated in
C:\wamp\www\NewProject2Ajax\DependentListBox2.php on line 274
Deprecated: Assigning the return value of new by reference is deprecated in
C:\wamp\www\NewProject2Ajax\DependentListBox2.php on line 275
Deprecated: Assigning the return value of new by reference is deprecated in
C:\wamp\www\NewProject2Ajax\DependentListBox2.php on line 276
Deprecated: Assigning the return value of new by reference is deprecated in
C:\wamp\www\NewProject2Ajax\DependentListBox2.php on line 437
Deprecated: Assigning the return value of new by reference is deprecated in
C:\wamp\www\NewProject2Ajax\DependentListBox2.php on line 439
Deprecated: Assigning the return value of new by reference is deprecated in
C:\wamp\www\NewProject2Ajax\DependentListBox2.php on line 440
Deprecated: Assigning the return value of new by reference is deprecated in
C:\wamp\www\NewProject2Ajax\DependentListBox2.php on line 441
Deprecated: Assigning the return value of new by reference is deprecated in
C:\wamp\www\NewProject2Ajax\DependentListBox2.php on line 443
Deprecated: Assigning the return value of new by reference is deprecated in
C:\wamp\www\NewProject2Ajax\header.php on line 30
Deprecated: Assigning the return value of new by reference is deprecated in
C:\wamp\www\NewProject2Ajax\header.php on line 166
"gerrit" <gerrit@forum.codecharge> wrote in message
news:54da9a96ec4903@news.codecharge.com...
>
> its just a coding error, if you genarate the page than it works good.
> You can ask support.
>
>
>
> gerrit
> _________________
> http://www.ccsdemo.nl
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
gerrit
Posts: 131
|
| Posted: 04/18/2011, 3:03 AM |
|
sorry bas,
I have published the ajax example, and thats works fine, only I have olso the 2 errors in codecharge.
But what is new !
Deprecated: Assigning the return value of new by reference is deprecated in
C:\wamp\www\NewProject2Ajax\DependentListBox2.php on line 77
Gerrit
_________________
| http://www.vision.to | |
 |
 |
damian
Posts: 838
|
| Posted: 04/18/2011, 4:46 AM |
|
what version of php are you running in wamp?
what version did you choose in your ccs?
_________________
if you found this post useful take the time to help someone else.... :)
|
 |
 |
bas
|
| Posted: 04/18/2011, 7:46 AM |
|
Server supports PHP5
Project was set to PHP4.x
Changed it to PHP5.x & the depricated message is gone.
The demo now works
but if I try to build Autofill (I know its alreday built in this
example...) - still can't do step 9! so how was it built!!!
"damian" <damian@forum.codecharge> wrote in message
news:54dac248d527e4@news.codecharge.com...
> what version of php are you running in wamp?
> what version did you choose in your ccs?
>
> _________________
> if you found this post useful take the time to help someone else.... :)
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
CodeChargeMVP
Posts: 473
|
| Posted: 04/28/2011, 1:00 PM |
|
Hi,
I remind than I experienced this error many times, when started on dependent list boxes following the CCS examples, my solution was to delete services,features and start again,
then the error just disappear,to be honest, the process on the CCS examples isnīt perfect explained, you have to get some skills to know which steps has sense and which does not.
Quote bas:
Autofill - Warning:An unclosed string constant. Ln: 39, Col: 147.
Line 39:
new
Ajax.Request("services/prod2_store_products_price_PTAutoFill1.php?keyword="
+ encodeURIComponent($("store_productsprice").value).replace(/'/g, "%27"), {
Even the Ajax Samples by CodeCharge produce this error (different line no!)
so its not new!!
_________________
Best Regards
Entrepeneur | NT Consultant
|
 |
 |