Hide Script / Prevent Users From Saving Page With IE And Raveling All?
Apr 28, 2000
This question probably has been asked many times before, but is there a way to make a JavaScript invisible to others?
Can I prevent users from saving the page with IE and raveling all scripts?
View 14 Replies
ADVERTISEMENT
Jul 5, 2006
Is there a way to prevent users printing from the browser?
View 1 Replies
View Related
Jul 20, 2005
In my Web Form I have more than one Textbox for user input. If I hit
enter to any Textbox its submitting the form. How can I prevent Form
submission if users hit enter to the textbox? I want to submit the
form only when user will hit submit button.
View 2 Replies
View Related
Mar 31, 2011
My problem is that users have the ability to manipulate querystrings to the point of being able to access data to which they should not have access to. The user logs in with their details and is redirected to their own data. The URL in the status bar is displayed without the &id=xxxx but in the source the &id=xxxx is present as a HREF. If the user adds &id=xxxx (Where x is any integer) they can access the data of other users. how to prevent this? To my mind, the best course of action would be to include id=xxxx in the session data and not to have it as a querystring but I would not know how to approach this.
View 14 Replies
View Related
May 11, 2010
I have this website: [URL] and see the top bar reading "sign up your restaurant" that appears after approximately 3 seconds after the page loads? What happens when you click close button on the right is that the bar disappears, now this bar appears on every page and what I need to have happen is once it gets closed by the user, it does not appear again for the rest of the user's time on the site. I'm assuming that this can be done by a cookie or something.
View 1 Replies
View Related
Sep 4, 2010
My requirement is, I have multiple pages in tab format. If i am on first page in edit mode and change any control's value and without saving information i click on other tab that particular time a popup should appear showing validation message say "you are moving without save and it will loos all changes either click ok to loose the changes and move to other page or click cancel to remain on the current page."I tried using var isDirty = false; var msg = 'This page has unsaved changes.Click OK to abandon the changes and leave the page.Click Cancel to stay on the page so that you can save your changes.';
$(document).ready(function ()
{
$(':input').change(function ()
[code]....
View 1 Replies
View Related
May 6, 2009
I am using a very simple search-type page to enable users to input a model number and its page appears in a inline frame. Its not a true search as it is simply relying on a person entering the correct html page name to find it. But this works perfectly in my application.The problem I have is that I cannot get the type box to accept enter key as a submitt, only a click of the mouse will submitt the request. If enter is pressed the box loses the users input but no action is taken.I think this may be a javascript issue. I have posted the code below.
[CODE]
<html>
<head>
[code]....
View 2 Replies
View Related
May 19, 2006
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?
View 4 Replies
View Related
Jul 20, 2005
I'm incharge of updating the stats on a chl hockey teams Web Site. I
would like to know if there is a way (javascript) to be able to save
the content of the CHL Statistics WebPage on our Server with
Javascript, in a txt file.
If it possible, then I would take the content of that page. Execute
another script that will take this information an place it in our
database on our server. By doing this, our Team WebSite would be
update automaticaly.
At this time, I have to open the CHL Statistics WebPage. Then Save the
HTML page as a txt file, upload it on our server via FTP, then execute
my script that places it in our database.
Could you send your suggestions to rene.aube@gnb.ca?
View 4 Replies
View Related
Sep 7, 2011
I am currently working on a page that has a series of <div> tags that .show and .hide whencorrespondinglinks are clicked, the first <div> is visible when you load the page. When you leave the page and return to it, the page reloads and the the first <div> is visible. Is there any way for the browser to save the current <div> that is visible to stay visible when you return to the page?example of what I am trying to accomplish:I load a page and click on the third link to show the third <div> and then after leaving and returning to the page (by clicking the browsers back button) the third <div> is still visible, rather than returning to the original state of the page where the first <div> is visible.
View 2 Replies
View Related
Sep 25, 2010
how to disable users from downloading the page?? (clicking 'save page as'.. and then error)
View 4 Replies
View Related
Feb 25, 2003
I have a site up and running called www.kalahari.co.za which points to www.kalahari-adventures.co.za As the business depends on adventurous people seeing images of the place, the bigger the better. So I have designed the site to show one static background pic to each page. I sorted out a problem of different browsers by have a hidden index page that looks at the monitor a viewer has and decides that if you have a 1024 x 768 monitor it then opens a page index1024.htm that has the appropriately sized background pic.
Now I said to my client he would get better search engine ratings if we created 3 sites and the existing site is spread over those sites. Anyway I have done all that only to discover from High Rankings Advisor (highrankings.com that search engines have now cottoned onto this (competitors complaining I suppose). But I'm going ahead anyway.
My problem is that I have put all my keywords and descriptions on the 1024 pages. But if a person sees that page in a search engine clickt to view it and has a 800 x 600 monitor then my script is not going to work.
I have tried putting my index page script onto all the pages (see script below), but when I open a unique page it looks for the index page in the folder where that doc is situated. I suppose a quick and dirty would be to direct the viewer back to the index page which will then activates the scrpt (see below) that checks for the right monitor size.
I would prefer the viewer to stay on page. So If someone who knows Javascript can rewrite the script so that A) it looks at the name of the page. And B) once it sees that page's name it has to then look for that same page in the appropriate folder and open that page. (folders are docs800, docs1024 and docs1624)
The problem is that I can't have the same index page script because at the moment if the script is on the page I am trying to open, it loops forever.
How do I sort this out?
This is the present script on the index page.
<script language="JavaScript">
<!--// hide bad old browsers
var s800x600page = "index800.htm";
var s1024x768page = "index1024.htm";
var s1152x864page = "index1264.htm";
var s1280x720page = "index1264.htm";
var s1280x960page = "index1264.htm";
var s1280x1024page = "index1264.htm";
var pagetype;
if ((screen.height == 600) && (screen.width == 800)) { pagetype = 2; }
else if ((screen.height == 768) && (screen.width == 1024)) { pagetype = 3; }
else if ((screen.height == 864) && (screen.width == 1152)) { pagetype = 4; }
else if ((screen.height == 720) && (screen.width == 1280)) { pagetype = 4; }
else if ((screen.height == 960) && (screen.width == 1280)) { pagetype = 4; }
else if ((screen.height == 1024) && (screen.width == 1280)) { pagetype = 4; }
else { pagetype = 2; }
if (pagetype == 2) { window.location.href = s800x600page }
else if (pagetype == 3) { window.location.href = s1024x768page }
else if (pagetype == 4) { window.location.href = s1152x864page }
else if (pagetype == 4) { window.location.href = s1280x720page }
else if (pagetype == 4) { window.location.href = s1280x960page }
else if (pagetype == 4) { window.location.href = s1280x1024page }
//-->
</script>
I design but programming is still in my dreams ...
View 9 Replies
View Related
Jun 20, 2004
just wanted to know if there is a way to insert a code that shows how many users are viewing your page using javascript? i.e. 3 Users Online
View 4 Replies
View Related
Nov 23, 2010
I am looking for some code to redirect all of the IE users to my blog instead of my main page.
View 14 Replies
View Related
Nov 29, 2011
My project is stated in the title, I want to let users who want to see my portfolio click on a button and the portfolio page slide over my index page. Ex. at www.visumdesignz.com over to the left is a button that says portfolio. when you click on it an extruder pops out, I used the extruder for another function, I decided I didn't want that function, but it gave me this idea. I want the extruder to slide over all of the content.
I noticed the facebook app has a similar function to what I am looking for, take a look at it, when you are looking at your dashboard the news feed slides off to the side, that's a similar idea, even though this isn't mobile, you get the idea, at least I hope.
View 5 Replies
View Related
Feb 6, 2009
I am trying to build on my weather website. On the page I am working on I have many images. These images are best viewed at large sizes, but if all of them were large, the page would look terrible, so I have them set to take the large image, shrink on load, enlarge on mouseover, then shrink on mouseout.. the problem is, if users do not scroll down my page, and try to look at the second row of images.. Then the bottom half of the image is cut off.. So what I need to do is Figure Out how to get my images to either appear and center of page on enlarge, or to have the page scroll down on enlarge..
View 3 Replies
View Related
Jul 27, 2004
Is there a way to prevent the user from refreshing/reloading a particular page? Or any way to prevent a particular form from being posted/inserted twice?
View 3 Replies
View Related
May 18, 2010
I'm a WYSIWIG developer who can poke around in the code, modify existing scripts, etc. I need to prevent any user from loading a page twice, so they can only access a prize code one time. Setting a cookie is the first thing that comes to mind, which can be worked around by the motivated useras to other ways to block the user from accessing the page more than once? Something other than Javascript a better choice? Keep in mind my ideal solution is an existing bit of code that I can modify to my needs.
View 3 Replies
View Related
May 2, 2011
I am trying to use it to direct users to a search page based on the values of two drop down boxes. The issue i am having is that the code below works fine on a test page, but not on my test domain (with wordpress theme) and so i was wondering whether there is anything I am doing wrong... Is onclick already defined maybe? I'm not sure how it works to be honest... :(
<script type="text/javascript">
function gosearch() {
var breed = document.getElementById('breed').value;
var area = document.getElementById('area').value;
var site = "http://hairloss-help.net/?s=";
var searchurl = site + breed + area;
[Code]...
View 7 Replies
View Related
Nov 23, 2006
I have a following problem:
from time to time an attack on my page is performed,
overloading the server. The administrators had to limit the
access to the page to some domains only. I would like to
keep the page open for everybody.
Probably I should introduce a JavaScript/CGI driven form and
let user to copy some letters etd. before letting him
entering the page.
I am sure there are many solutions to this problem around,
but I don't know what to search for. Can you give me some
tips where to start?
I think the attacs are just casual, there are no real
reasons why should anybody try to copy or destroy the page
(no commerece, no money to loose or gain), so probably I
should start with something simple.
View 1 Replies
View Related
Nov 8, 2010
have simple slideshow here:n i v o sport.com/i n l i f e/category/2 (please remove white spaces)on the right you will see "More in Travel:" and then arrowsscroll page a bit down and click arrow you will see that page scrolling jumps up. how to keep window positio
View 8 Replies
View Related
Mar 9, 2009
On this test page, if you click the contact link, then submit, the page jumps to the top.. i guess that page is refreshing?? How can I prevent this jump to the top and have the page stay still?
View 7 Replies
View Related
Sep 11, 2011
I'm asking if it's possible to prevent a goback to the previous page with jQuery or Javascript, if so then how is the best approach?
View 1 Replies
View Related
May 27, 2009
Is there any method which blocks the website from loading, if the browser using is not java script enabled? I have a webpage with some details to be entered. This website is designed in such a way that it checks the exceptions in the entry and alerts the user regarding it which is done using javascript. but for some users this feature is not working. I guess its the problem with the browser they use. So how can I alert them to enable Java by adding something to the script? Is there any way which prevents the page from loading if java is not enabled in the browser?
View 3 Replies
View Related
Sep 7, 2010
I am using the following code from this site.
but for some reason if the page is long the whole page scrolls up so the top of the calendar is at the top of the browser, which actually hides the box that the date will end up in.
can anyone see how I can alter the code so that the page does not scroll up, but have the calendar show just below the box that the date will go in and the page does not scroll?
here is the full code that I am using to test this out with. code...
View 1 Replies
View Related
Sep 10, 2010
i can't figure this out, it was working fine before, and i did a few updates and now it only works when the button is pressed but not if i type into the form and press 'enter'. i don't want he page to reload at all. (also the entire wrapper for my page is hidden using css, a loading image is displayed until the onload event fires, then the wrapper uses jQuery's .slideDown(2000), so if javascript is off they won't even see the form, i'm not concerned about browsers with javascript disabled, i *only* want them to be able to type in the field and hit enter or click the send button to post the data via ajax with no page reload. i'll make it more accessible later)
[Code]...
View 1 Replies
View Related