Closed sugeng85 closed 13 years ago
Hi sugeng85, please specify about each browser do you talking about?
i use mozilla firefox 3.6.17 and error while using trigger is "String is null" and sometimes error string.function.
Try it.
Thanks
@sugeng85 just tried with firefox 3.6.17 (on xp) and no error. Can you provide some demo with error reproduction?
Ok2 i try upload your error with my current project. Try this link
http://indomarketplace.com/home/test_fcbk(it's normal using fcbk not using trigger function)
http://indomarketplace.com/home/test_fcbk_load(it's error string.replace but load data. After that i post using suggest is null value).
Thanks
Sincerely Sugeng
Ok, the problem in this line: var keyword = [{"id":3,"name":"Musik"}]; id is integer, so to fix this you need to add quotes. And the result of changes should be something like this: var keyword = [{"id":"3","name":"Musik"}];
If this solution is good for you please close the issue.
Okay thx for your explanation but i think is weird if id using string not integer. Can you fix that problem or maybe you can help me modify your script to make id with numeric not string because my API with column id is using numeric int and if i format that to string i think my website is messy.
Because i like standar coding with id numeric integer and name string and so on.
So if you can't fix your library maybe you can help me to teach me modify your lib.
Thanks
Sincerely Sugeng
It's actually not a problem, and this because that id (or value for option element) can include letters or other special characters.
About your api, if you have ajax call it`s actually not matter what you send string or integer (obviously you need to check it on server side and convert to needed format). Also you can always convert string to int by using parseInt function (http://www.w3schools.com/jsref/jsref_parseInt.asp). or another way is to add to integer quotes. example: var keyword = [{"id":3+'',"name":"Musik"}];
Ow okay thx for your explanation. I very thanks because your explanation is helpful for me. Keep working and many learn we can sharing knowledge :D
Or you have YM id?
nope, but you can email me at admin@emposha.com I`m closing this issue, if you still have troubles reopen it.
Okay thx for the explanation.
Hello, can i ask you something?
i use your facebook complete and require jquery 1.6. If i use jquery 1.4 is trouble? because i use nivo slider using jquery 1.4 and not working with jquery 1.6. Thanks for your help
Sincerely Sugeng
i think that is a bug while i try to load with trigger method using your script and i look my browser show the error "string.replace is not function" maybe you can fix this.
Thanks