Javascript 1.2
You are going to love this one :)
So, I tried adding some javascript to one of my pages using the script controls, which worked in the past. The one thing I noted with the scripts I was trying to add is that they are marked as JavaScript1.2.
When I added them to the page and published, I got nothing. The scripts were in the source, but they were not doing what they should have been.
Here is the JavaScript I am trying to add:
<script src=
"https://www.smartrego.com/express/smix_cookie_process.js"
type=
"text/javascript"
language=
"JavaScript1.2"
></script>
<script src=
"https://www.smartrego.com/express/date.js"
type=
"text/javascript"
language=
"JavaScript1.2"
></script>
<script language=
"JavaScript1.2"
>
function
get_url_ax(name)
name = name.replace(/[\[]/,
"\\\["
).replace(/[\]]/,
"\\\]"
);
var
regexS =
"[\\?&]"
+name+
"=([^&#]*)"
;
var
regex =
new
RegExp( regexS );
var
results = regex.exec( window.location.href );
if
( results ==
null
)
return
""
;
else
return
results[1];
var
default_ax_param =
'CDD5AAB334C5FFF38F5132F4F006B74A8E84F9532DA7F617CE1898CB4EFA6C98'
;
var
ax_param = get_url_ax(
'ax'
);
var
dx_param = get_url_dx(
'dx'
);
var
v_iframe_url=
'http://www.smartrego.com/express/'
;
if
((ax_param ==
null
) || (ax_param ==
''
)) ax_param = default_ax_param;
document.write(
'<iframe src="'
+v_iframe_url+
'register.cfm?ax='
+ax_param+
'&wxrc='
+Get_Cookie(
'wx_random_cookie'
)+
'&dx='
+dx_param+
'" width="300" height="350" frameborder="0" scrolling="no"><p>Your browser does not support iframes.</p></iframe>'
);
</script>
Hi Jaymie,
Can you tell me what browser are you using and do you get any java script errors?
You can also try to use the java script widget and check if it works with it.
Best wishes,
Pavel
the Telerik team
Firefox 3.6.13
I have tried the Widgets (I called them controls in my earlier post) but they do not work.
I don't get any errors from the scripts when I add them, it's just that I can't add them via the JS Widgets, they just don't work.
Doing my work around works, but to me it seems like a bug that might need fixing.
Hello Jaymie,
I have tried reproducing your issue using the JavaScript controls and was unable to. I have attached a video where I illustrate how your scripts are added to the page.
All the best,
Radoslav Georgiev
the Telerik team
Unsubscribing