Tag Archives: javascript

Fixing Javascript


On some pc's registry settings for Javascript on local page becomes corrupted.

If Javascript for local pages is disabled, some EzGenerator features doesn't work anymore:

 

If you experience problems with one of the following :

 

- New Project Dialog

- Edit mode displays very small editor and you are unable to edit pages

- in V4, templates dialog, you are not able to select template variations

 

 

check following registry keys in registry editor:

HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionInternet SettingsZones

and

HKEY_LOCAL_MACHINESoftwareMicrosoftWindowsCurrentVersionInternet SettingsZones

 

(to open registry editor, click on windows start button and type : regedit  in search box)

 

 

 

normally , you should only see keys 0 1 2 3 4  there (see image), if you see extra entry, delete it, close regedit, and restart ezg and IE (if open)

 

 

 


Print  posted by miro   Install/Registration tags:  Javascript • fix   permalink
0 0

Form widget, Adding HTML/ Script in reply


After Request Form (Widget) is submitted, submit message is displayed to user.

This submit message (you can set it widget settings) can be simple text but can also be formatted as html (or javascript).

 

if you need to include scripts in message, there are some limts :

You can put simple scripts inside submit message:
< script>alert('alert');</ script>

will work, notice, all code is on single line, single quotes are used


if you need something more complex, make it javascript function,

put it inside page scripts and call this function from submit message:
< script>runMyFunction();</ script>


Print  posted by miro   Forms tags:  request • form • html • javascript   permalink
0 0

Scroll to given element on the page.


 

Some examples about how to scroll to a given page element.

All this code must be wrapped into <script type="text/javascript>custom code stays here</script> tags.

 

Scroll to the element on page load:

 

$(window).load(function() {

$('html, body').animate({ scrollTop: $("<selector>").offset().top},2000);

});

 

Scroll to the element on page ready:

 


$(document).ready(function() {

$('html, body').animate({ scrollTop: $("<selector>").offset().top},2000);

});

 

Scroll to the element on click:

 


$("<selector>").click(function{

$('html, body').animate({ scrollTop: $("<selector>").offset().top},2000);

});

 

2000 - Time in milliseconds (1000 ms = 1 s) that the animation needs to complete. Reduce the amount for quicker and increase for slower motion.

 

More info about the <selector> and how to use it here: JQuery selectors - how to select items on page properly

 

Print  posted by atanas   Jquery/Ajax tags:  javascript • scroll • top   permalink
5 1


[home] 1-3 of 3


CATEGORIES



TAGS


RECENT ENTRIES