Thanks, that did the trick!


Brandon Aaron wrote:
> 
> You can just call $.trim on the string. Just to change this line:
> text = "html/"+$(this).text()+".html";     /*read out text from
> to this:
> text = "html/"+$.trim($(this).text())+".html";     /*read out text from
> 
> Perhaps $().text() should call this for you. Does anyone see a reason
> why $().text() shouldn't call $.trim() on the result?
> 
> --
> Brandon Aaron
> 
> On 10/17/06, Angelo Sozzi <[EMAIL PROTECTED]> wrote:
>>
>> Hi,
>> I just started  using JQuery and I'm amazed how simple things can be
>> done...
>> Unfortunately I've run into an IE issue (I think). Im using an UL list
>> for
>> A-Z links (large site). I try to read out the LI elements and use them to
>> generate the path to the html file  (E.g. A.html from <li>A</li>.
>>
>> This seems to work fine in FF, but in IE I end up with a filename of 'A
>> .html' (note the space):
>>
>> Demo: (only A and B load data) using V.249
>> http://www.sozzi.cn/jquery/fish_ajax_3.html
>>
>> The alert poping up just outputs the generated filename:
>> the "offending" line of code is:
>>
>> text = "html/"+$(this).text()+".html";     /*read out text from
>> <li>text</li> and make filename from it*/
>>
>>
>> any way to solve this easily? I just found some regex solutions I don't
>> quite understand.
>>
>> Thanks a lot
>>
>> Angelo
>> --
>> View this message in context:
>> http://www.nabble.com/problem-iwith-leadiing-space-in-IE-tf2461879.html#a6863015
>> Sent from the JQuery mailing list archive at Nabble.com.
>>
>>
>> _______________________________________________
>> jQuery mailing list
>> [email protected]
>> http://jquery.com/discuss/
>>
> 
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/problem-iwith-leadiing-space-in-IE-tf2461879.html#a6868326
Sent from the JQuery mailing list archive at Nabble.com.


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to