Well based on the post: The same as this one
I've tryed to do this:
Call mFramePesquisa.parentWindow.execScript("gotoPage(pesquisa.html?re_ligacao)", "JavaScript")
As you can see the js function takes one parameter "pesquisa.html?re_licagao" but when executed on the browser it gives an error saying that ":" was expected.
So i've tryed to quote the function parameter without success:
Call mFramePesquisa.parentWindow.execScript("gotoPage(" & chr(34) & "pesquisa.html?re_ligacao" & chr(34) & ")", "JavaScript")
or
Call mFramePesquisa.parentWindow.execScript("gotoPage('pesquisa.html?re_ligacao')", "JavaScript")
Both throw out an "Object expected" error on ie browser.
Any suggestions?
thx
PS: I've tried also to use chr(63) instead of "?" but without success.
Edit: I suspect it had something to do with the string used as parameter, since in the original JS the function is called like this on a onChange evento for a object:
onchange=javascript:gotoPage(this.value)