[jQuery] Re: Get System Error with "jCarousel and Thickbox 3 "
Hi, Thickbox fails to laod images from a REST Style URL has anyone faced this before ? On May 1, 11:59 am, Samant <[EMAIL PROTECTED]> wrote: > Hi , > > I was trying to use "jCarousel and Thickbox 3 " plugin . > From the jCarousel, examples folder - used the special_thickbox.html > and replaced the URI to point at REST webservice call image output as > shown below instead of > static .jpg image > links.http://re3.yt-thm-a01.yimg.com/image/25/m4/3024464321http://re3.yt-thm-a01.yimg.com/image/25/m4/3022951145 > > The initial thumbnail display works fine but on click of the image , > get a System Error at Line 0. IE error window. > Browser is IE 6. > > Has anyone faced this issue before ? Any resolution ? Thanks in > Advance ! > > Thanks > Samant
[jQuery] Re: Get System Error with "jCarousel and Thickbox 3 "
I think the issue with the enlarge image view is in the below snippet of code as the URLs dont jabe .jpg extension . Any workaround ? function mycarousel_getItemHTML(item) { var url_m = item.url.replace(/_s.jpg/g, '_m.jpg'); On 5/1/08, Samant <[EMAIL PROTECTED]> wrote: > > Hi , > > I was trying to use "jCarousel and Thickbox 3 " plugin . > From the jCarousel, examples folder - used the special_thickbox.html > and replaced the URI to point at REST webservice call image output as > shown below instead of > static .jpg image links. > http://re3.yt-thm-a01.yimg.com/image/25/m4/3024464321 > http://re3.yt-thm-a01.yimg.com/image/25/m4/3022951145 > > > The initial thumbnail display works fine but on click of the image , > get a System Error at Line 0. IE error window. > Browser is IE 6. > > Has anyone faced this issue before ? Any resolution ? Thanks in > Advance ! > > Thanks > Samant >
[jQuery] Get System Error with "jCarousel and Thickbox 3 "
Hi , I was trying to use "jCarousel and Thickbox 3 " plugin . >From the jCarousel, examples folder - used the special_thickbox.html and replaced the URI to point at REST webservice call image output as shown below instead of static .jpg image links. http://re3.yt-thm-a01.yimg.com/image/25/m4/3024464321 http://re3.yt-thm-a01.yimg.com/image/25/m4/3022951145 The initial thumbnail display works fine but on click of the image , get a System Error at Line 0. IE error window. Browser is IE 6. Has anyone faced this issue before ? Any resolution ? Thanks in Advance ! Thanks Samant
[jQuery] Re: identify tables with same ID ( duplicate ids)
Hi MorningZ, Did not want to use this approach as, the tables can be added and removed dynamically..., so to complete the story .. htere are 2 buttons add and delete. Let say, the user adds 3 tables first. Then the global variable value will be 3 and tables will have ID as 'Instructions_1', 'Instructions_2' and 'Instructions_3'. Now if he selects all table and deletes and adds 4 tables , the ids will be 'Instructions_4, 'Instructions_5' and 'Instructions_6'. So can end up with random IDs too . .. if he selects and deletes 4 and adds 3 more tables. The solution of $('table[id=Instructions]') seems to be working fine .. though as per People its a kludge :) Can't see a simpler solution than using duplicate IDs. Thanks a lot Gurus ! Regards Samant On Mar 3, 8:35 am, MorningZ <[EMAIL PROTECTED]> wrote: > "On click of a button, i > > > add tables dynamically (using the 1st table as a template) to the page > > (using DOM + js). > > Hence i end up with multiple tables with duplicate id's" > > Have a counter of some sort, like a global variable like > > var TableCount = 0; > > when you add, append this value to the id and increment it for the > next added table > > To select all these tables, it's simply: > > $("table[id^='Instructions']") > > that would grab all tables that "have an ID that starts with > instructions"
[jQuery] Re: identify tables with same ID ( duplicate ids)
Thanks Karl, Klaus and Gordon. I will try the approach and let u know. The reason i have duplicate ID tables is due the fact that.. my 1st table is a template table (this is hidden). On click of a button, i add tables dynamically (using the 1st table as a template) to the page (using DOM + js). Hence i end up with multiple tables with duplicate id's. Is there a better way to approach this scenario then ( i guess you might say, while creating the table dynamically modify the table ID.. did not want to do this processing unless its absolutely necessary ) ? I guess using class might be another good try for me. Thanks Samant On Mar 3, 5:07 am, Gordon <[EMAIL PROTECTED]> wrote: > IDs are supposed to be, by definition, unique. They are there so that > scripting languages and CSS style rules can easily identify single > elements. If your markup has more than one element with the same ID > in it, then your markup is broken. If you have more than one element > that needs to have the same appearance or behaviour then they should > all be given the same class instead. > > On Mar 2, 7:32 pm, Samant <[EMAIL PROTECTED]> wrote: > > > > > hi, > > > I have 2 questions here for the group.. > > > 1. Does Jquery have native functions or lib or plugins to support > > conversion of HTML Table data into XML string ( which can then be > > sent via AJAX to server for getting a respone) ? > > > 2. If my html page has tables with same ID , how can i obtain a > > handle to all these tables. Eg. there is html page with 3 tables of > > which 2 tables have same id. > > Can i get a handle to these tables using any method like > > alert($('#Instructions').length); > > This however give me length as 1 instead of 2 . > > > I tried using (IE only solution) > > document.all('Instructions').length which works fine , but this does > > not work if there is only 1 id . eg. > > alert(document.all('UserData').length); > > > Any help is appreciated !! > > > sample code > > - > > > > > > > > > > > Table 1 > > > > > > > > > > > > > > > > > > > > > > > > > > > Table 2 > > > > > > > > > > > > > > > > > > > > > > > > > > > Table 3 > > > > > > > > > > > > > > > > > > > TIA for reading this- Hide quoted text - > > - Show quoted text -
[jQuery] identify tables with same ID ( duplicate ids)
hi, I have 2 questions here for the group.. 1. Does Jquery have native functions or lib or plugins to support conversion of HTML Table data into XML string ( which can then be sent via AJAX to server for getting a respone) ? 2. If my html page has tables with same ID , how can i obtain a handle to all these tables. Eg. there is html page with 3 tables of which 2 tables have same id. Can i get a handle to these tables using any method like alert($('#Instructions').length); This however give me length as 1 instead of 2 . I tried using (IE only solution) document.all('Instructions').length which works fine , but this does not work if there is only 1 id . eg. alert(document.all('UserData').length); Any help is appreciated !! sample code - Table 1 Table 2 Table 3 TIA for reading this