Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 19-03-2009
Member
 
Join Date: Nov 2005
Posts: 403
How to Bypass Java Script

I have great difficulty accessing certain web pages to my work.
As we are limited with Internet Explorer, with colleagues, use Firefox portable version.
The problem is that my colleagues work on the internet which is quite impressive! I could see that on most websites, JavaScript is making slow connection (eg pages without animations displayed without problems, others such as Hotmail bring at least 2 minutes to display)!
How to solve this problem?
Thank you in advance.
__________________
Don't talk unless you can improve the silence.
Reply With Quote
  #2  
Old 19-03-2009
Member
 
Join Date: Dec 2007
Posts: 1,592
Re: How to Bypass Java Script

if what you mean by bypass is ignore, this is how you would do it.
Code:
<script language="javascript" type="text/javascript">

/* if (top.location != location)
top.location.href = document.location.href; */

</script><script language="javascript" type="text/javascript">

/* if (top.location != location)
top.location.href = document.location.href; */

</script>
Or Go into your browser settings and disable JavaScript.

Or copy the html file and edit out the code in the copy.
Reply With Quote
  #3  
Old 19-03-2009
Member
 
Join Date: Dec 2007
Posts: 1,542
Re: How to Bypass Java Script

If you have worked with AJAX at all, you know that there is this thing called the Same-Origin policy which makes it nearly impossible to send AJAX requests to 3rd party domains. There are workarounds such as going through a proxy. However, sometimes it?s the only way to go about getting the job done.

If you have control over both domains, then this may be the ideal solution for you. For example, lets say you have two sites and you need to share data between the sites. Connecting via MySQL could be out of the question. So what do you do now? Create a dynamic javascript include file.

Code:
<?php
//some database stuff here
echo "myVar = ['info1','info2','info3'];";
?>
See how that outputs a Javascript array? It will come in handy next.

Code:
<script src="domain2.com/dynamicscript.php" type="text/javascript"></script>
<script type="text/javascript">
for(i=1;i<myVar.length;i++)
{
    document.write("<p>"+myVar[i]+"</p>");
}
</script>
By including the dynamic.php file as if it were a javascript file, you have imported the data from the other domain without having to use ajax. You can use this to pass any amount of javascript you need. I?m sure if you?re clever you will figure out how to make this into a ?mock AJAX? system.
Reply With Quote
  #4  
Old 19-03-2009
Member
 
Join Date: Sep 2005
Posts: 1,466
Re: How to Bypass Java Script

If you are a regular web surfer you must have encountered annoying webpages disabling right-click menu, moving and resizing windows, hiding status bar and having all sorts of fancy scrolling status bar texts, However, Firefox provides users an easy way to stop these common javascript annoyances.


Just Follow the simple steps below to enhance you web-browsing experience:
  • In Firefox, Goto Tools -> Options.
  • Click Advanced button right next to the Enable Javascript chekbox (See image below).
  • Uncheck all options as shown below.


  • Click OK to exit.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How to Bypass Java Script"
Thread Thread Starter Forum Replies Last Post
How to bypass the open file security warning in vb script Quasim Software Development 5 05-07-2011 07:27 PM
Is there any future for java script? Gag$nesh Software Development 4 28-05-2011 07:58 PM
Executing java program via a script Jensen Ackles Software Development 5 29-03-2010 12:47 PM
Impement Anti-Adblock script (AAS) or ad blocker bypass io78 Software Development 3 07-11-2009 08:26 PM
can someone look at this script? JAVA Daren Software Development 2 07-03-2009 08:26 PM


All times are GMT +5.5. The time now is 06:29 AM.