Hi Marc,

I updated WebTest to R_1809 and indeed WebTest seems be tolerating the %20 now 
:). But I have to admit the programmers have removed some of them in the 
mean-time. We actually rolled back the change in one instance and inserted one 
%20 again, which had no impact on WebTest. So, I'm assuming it's fixed...
I'm enjoying WebTest again.

Thanks for your help and constant support,
Michael 


-----Original Message-----
From: [email protected] [mailto:[email protected]] On 
Behalf Of Marc Guillemot
Sent: Mittwoch, 29. September 2010 09:51
To: [email protected]
Subject: Re: [Webtest] RE: JavaScript with %20 (space)

Hi Michael,

can you try with latest build? I'm not able to reproduce any problem 
with %20 in a javascript link href using latest HtmlUnit version.

Cheers.
Marc.
-- 
HtmlUnit support & consulting from the source
Blog: http://mguillem.wordpress.com

On 09/22/2010 02:25 PM, Michael Zwick wrote:
> ...sorry, I'm using R_1758
>
> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On 
> Behalf Of Michael Zwick
> Sent: Mittwoch, 22. September 2010 13:56
> To: [email protected]
> Subject: [Webtest] JavaScript with %20 (space)
>
> Hi,
>
> I observed a problem with the execution of javascript:
>
> In my HTML page there is a link with a href executing some javascript:
> <a title ="Upload" class="roundbutton"  
> href="javascript:{%20document.getElementById('hidden_p_action').value='Upload';%20submitForm(this);}"><span>Upload</span>
>   </a>
>
> If I click this link from WebTest like
> <clickLink 
> href="javascript:{%20document.getElementById('hidden_p_action').value='Cancel';%20submitForm(this);}"/>
> I get this error:
> JavaScript error loading page http://...: syntax error (javascript url#380)
>
> ...pointing to line 380 with the javascript.
>
>
> This seems to be due to the '%20' in the source's URL. At least after removal 
> of '%20' in the source this worked fine (opening the correct page):
> <clickLink 
> href="javascript:{document.getElementById('hidden_p_action').value='Upload';submitForm(this);}"/>
>
> Since I'm not in a position to remove the %20 in all JavaScripts in our pages 
> my questions are:
> 1. Am I right with my analysis? (And has anybody else made the same 
> observation?)
> 2. Any ideas how to fix or cope with this?
>
> Thanks a lot, regards
> Michael
>
> Y��z�fj)b�    b�՞m7��X������hm����+-�Ƨ��(��Y���b�ا~��y�^st==
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to