Is there a way to test for security settings in a users browser AND
their firewall. Lets say someone is using zonealarm. Is there a way
to test for their setting in zonealarm, so I can then redirect them to
a specific page.
The reason I am asking is that I have a flash front page. A user
cannot see the page because he has his security settings set so that he
does not see activex controls. I want to be able to test for those
settings then redirect him to a static page.
I'm using the standard module pattern and the problem is once you set a private variable, trying to test that object independently becomes a nightmare as the next test is polluted by the actions of the previous.So, the options are to have some reset method (which is horrible), setters on everything (defeats the point) or delete object and re-load script (hideous).
HAVE CLIENT-SIDE FORM COOKIE GET AND SET FUNCTIONS IN THE SECOND WINDOW DOCUMENT EXTERNAL JS.FILE OF A DUMY TEST SITE FOLDER ON MYCOMPUTER. IE8 THROWS 'SYNTAX ERROR' ON THE 'WINDOW.LOAD=FUNCTION, FIRST COOKIE FUNCTION HIGHLIGHTED'. CAN I ACTUALLY TEST COOKIES ON A TEST SITE ON MY COMPUTER WITHOUT THE SERVER (MYCOMPUTER) OR A DOMAIN NAME? YEAH NO HECKLING FROM THE PEANUT GALLERY.[code]...
here when i click the test button it will create a new test button inside div tag.But after that if i clicked new generated test button document.getElementById("test" ).onclick = function() is not working.how can i add functions to new dynamically created fields?
I'm now writing a web page where I have to display amounts/dates in the same format used by the loca PC. This means sometimes in italian (1.234,56) and sometimes in the US format (1,234.56). Any idea how, from js, I can retrieve the PC's regional setup ?
I want to let users to print an automatic generated image from a web page. the problem is that the image is big (little smaller than A4) and if I print the page from "File --> Print" the image is automatically resized or printed in more than one page, if I set the page properties from the File menu I can reduce print margin and cut off header and footer, and then it works fine. So I would like to set page properties form javascript to let users print the image with right dimensions.
I have a log file that is viewed on the local machine. There are some settings on the html page that allow the user to specify how the file is viewed. I'm just wnodering what are my options in saving these settings (so they could be reloaded next time the user loads the page). Writing to registry, a file, or a cookie? what's the right approach?
Does anyone know if there is a way to change the defaults such as number of thumbnails after initialisation? e.g.$('.changeTo16').live('click', function(){//set gallerific stuffnumThumbs: 16});$('.changeTo8').live('click', function(){//set gallerific stuffnumThumbs: 8}); etc...
I have a table that gets served off to a 3rd party site. Each row has "track" and "hide" checkboxes ... I need to save/update these settings as the user updates their settings so I can call them back later on future visits.
(cookies are not an option... because that is too easily lost and there could be thousands of settings over time)
So, I am leaning toward a AJAX POST using Jquery. Rather than submit on every change... I would like to store the settings in JavaScript and then batch submit every 30 seconds or on page unload. I have most if this working... it is the saving of the data and then batch submission code that I am after.
Let me give you the use case and a scenario:
Table with 100 rows and each row has "track" and "hide". Each row may be associated with one "subject" and multiple rows may have the same subject ... so when you track or hide... it tracks multiple rows (highlights, checks their boxes, and grabs the subject from a row field) OR it "hides" multiple rows based on their subject.
All that is working. (Yes!)
Now, because they could be clicking quickly through... they might track then "untrack" the same subject or hide then "unhide" the same subject all within a very short period of time.
I don't want all those AJAX calls!
So, I need some sort of data storage for the "subjects" that puts them in "track" and "hide" datasets ... removes them out if undone ... and occasionally submits whatever the queued up actions are (if any).
Also, there may be settings grabbed on page load that need undone (the track and hide setting grabbed from the DB that pre-dated that visit) ... so it may not as simple as removing from a data set... there should be an explicit "untrack" & "unhide" submission in those cases to update the DB.
I don't know whether this is a css problem or a javascript problem. My js knowledge is very basic. I purchase some javascript from Project7 to scroll my pages vertical, and I am having a small problem. There is probably a fairly simple solution, but I can't figure it out.
In this first example, the top padding for the first page is set to 0. Everything works well until the home button is clicked:
Test 1
In the second example, the first page has the a padding of 260px, same as all other sections (the header is also 260 px). When the page loads, there is a 260px gap between the header and the first section. Once any button is clicked, everything is works fine. Even if the page is refresh, it works fine.
Test 2
I have been playing around with this for hours and I cannot figure out how to set everything right.
I am using this settings to init my tinyMCE but unfortunelty its not working on IE..
HTML Code: var config = { settings : {[code]....
SCRIPT5: Access is denied.line 94 is the init function.. and when im using the init function without the settings then its working on explorer too :S tinyMCE.init( ); what am i doing wrong?
Is there an easy way to detect the local language setting of a client browser?
I would like to determine if the users browser is set to English, French, Italian or German language and display a message in the appropriate language but don't want to redirect user.
I use javascript to create a cookie when you click a link <a href="#" onclick="document.cookie='settings=blue; expires=31/03/2009;'">Blue</a> This creates a cookie and I can get it back easily but I want to use it as settings. I have 3 folders of pictures white blue and pink the user will click the link selecting there colour creating a cookie. Now when the page finds the cookie it needs to place the output in to the path. <img src="pictures/ !!!output!!! /something.png">
So far I have this (just a trial) <script type="text/javascript" src="cookie.js"> </script> <script type="text/javascript"> function image(){ settings=getCookie('settings'); if (settings!=null && settings!=""){ document.write('<img src="'+settings+'.png">') }}document.write(image()) </script>
This works but next to the image it says undefined so how would I get rid of it?
I have an application which runs with secure access. User logs in, uses the services, and logs out. After logging out, if the user click the back button, it actually takes them to that page. How can I prevent this?
Is there a way, that if the person clicks the back button or access a browser history, how can I make sure that the latest page is displayed instead of just the cache. Or, clicking the back/history should refresh that page.
I'm using serialscroll jquery plugin from ariel Flesler on this page : http://goo.gl/HMNUX the width of the container (#slideshow) is 100% of the window's width. everything is fine until the user resize the window. Then the pictures are not in the right position anymore. should reset the "offset" setting of the plugin on resize. I tried this, but it doesn't work :
When the number of menus (including a menu and its submenus) reach a particular number, then after that rest of the menus are not getting displayed. Is there any settings available to restrict number of menus in superfish?
I had problem when try to reuse div element with ui.dialog().If I set the width & height the first time it works; but if I call it from second function with different width & height it won't apply the new setting. Also if I manually resize the dialog when it appear after close and reopen it use the new size (resized manually) not the one I specified in the code.is it possible to resize the dialog before it show up?
I need a suggestion or code in JavaScript which reads the MS Word document page settings and number of pages. I know how to open and read a MS Word document, but i couldn't able to get page properties.
I have a Javascript used to adjust the fontsize on a webpage. This JS does not create a cookie to save the users setting, so if he goes to another page on the site, the default font size is shown.This is the JS;
Code: var min=8; var standard=11; var max=15;[code].......... What I need, is some code that will create a cookie, so that the users settings will be used throuout his whole visit.
I have a intranet site that allows users to log in and get excel reports. The user clicks the name of the report and it opens it from a folder for that user. Easy enough. The problem is that the path of the folder for that user is displayed in the Status Bar when it is being downloaded. I've discovered that users are grabing that path, changing the folder name, and can then access other folders. I don't want that to happen.