running javascript
-
hi friends i write a java script code for star rating in a asp.net webpage. it works correctly in OPERA browser but its not working in IE that i make my pages for IE 6.0 this its url address: http://avval.ir/Result.aspx?WordKey=Hynix&Degree=0&SearchPoint=330 Script code: ------------------------------------------- function RateIt(IDC,NameC) { var windowAttribs = "width=225 px, height=20 px, left=350, top=200"; var Url="rate.aspx?IDC="+IDC+"&NameC="+NameC; window.open(Url,"Rate It...",windowAttribs); } ---------------------------------------------- Page Code: ============================ ','<%# DataBinder.Eval(Container.DataItem, "Title2") %>')" style="cursor:hand" src='<%# DataBinder.Eval(Container.DataItem, "Rate") %>'> ============================== whats problem? thanks
-
hi friends i write a java script code for star rating in a asp.net webpage. it works correctly in OPERA browser but its not working in IE that i make my pages for IE 6.0 this its url address: http://avval.ir/Result.aspx?WordKey=Hynix&Degree=0&SearchPoint=330 Script code: ------------------------------------------- function RateIt(IDC,NameC) { var windowAttribs = "width=225 px, height=20 px, left=350, top=200"; var Url="rate.aspx?IDC="+IDC+"&NameC="+NameC; window.open(Url,"Rate It...",windowAttribs); } ---------------------------------------------- Page Code: ============================ ','<%# DataBinder.Eval(Container.DataItem, "Title2") %>')" style="cursor:hand" src='<%# DataBinder.Eval(Container.DataItem, "Rate") %>'> ============================== whats problem? thanks
Standard question #1: What do you mean by "not working"? Remove "px" from the width and height of the attributes. Does the IDC or NameC contain any characters that may be illegal in a Javascript string or in an URL? To handle any characters you would have to first url-encode the strings to make them valid for the URL, then replace \ by \\ and ' by \' to make them valid in a Javascript string. Unless the <%# tag is html-encoding the text, you would have to do that to. --- b { font-weight: normal; }
-
Standard question #1: What do you mean by "not working"? Remove "px" from the width and height of the attributes. Does the IDC or NameC contain any characters that may be illegal in a Javascript string or in an URL? To handle any characters you would have to first url-encode the strings to make them valid for the URL, then replace \ by \\ and ' by \' to make them valid in a Javascript string. Unless the <%# tag is html-encoding the text, you would have to do that to. --- b { font-weight: normal; }
-
did you see the page? (in IE and Opera) it works in Opera and also works on my computer (local) but the script code fail when run in IE. i confuse why it works on my computer with IE browser but fail when deploy it on host server.
Ok, I looked at the page. As there are hardly more than three words in the entire page that I am even able to distinguish as words, I have no clue what so ever what the page is supposed to do, or what I should do to reproduce any problems that you may have with it. So, can you now explain what you mean by "not working"? --- b { font-weight: normal; }
-
Ok, I looked at the page. As there are hardly more than three words in the entire page that I am even able to distinguish as words, I have no clue what so ever what the page is supposed to do, or what I should do to reproduce any problems that you may have with it. So, can you now explain what you mean by "not working"? --- b { font-weight: normal; }
thanks for your attention the page is persian. you just click on stars pic.(in the middle column) and a new dialog page must open. when i do it in an Opera browser target page appear but when i do it with IE an "Error on page" appear in statusbar and the target page dosnt open.
-
thanks for your attention the page is persian. you just click on stars pic.(in the middle column) and a new dialog page must open. when i do it in an Opera browser target page appear but when i do it with IE an "Error on page" appear in statusbar and the target page dosnt open.