Can You Block A URL?
Jul 23, 2005
I need to block a URL from printing at the bottom of the page from a
website. Is there any code that can do that? I know I can make it
into a PDF on the fly and that will elminate alot of hassle, but is
there any easier way?
View 5 Replies
ADVERTISEMENT
Jan 31, 2011
I am new to JQuery. I am using Block UI in my application.In submit button onclick event, i am performing client side validations ( required fied validators )in asp.net.On clicking submit button,whole page is blocked and at the same time validation message is also displayed and page remains blocked. While performing client side validations i don't want to block the page.
View 3 Replies
View Related
Jul 23, 2005
Is there a more concise way to do something like the the
desired code below?
The gripe is with the try-catch syntax. It takes *way* too
many lines of code to evaluate a conditional expression
when zero or more parts of the conditional expression may
trigger an error. In this case, the trigger is a call to
a non-defined (null) object.
In other words, how can you do a more simple 'try' statement
that simply spits out true or false, depending on whether
the 'tried' code threw an error or not?
Defining a function don't seem to work because you
can't pass the 'try' code as an argument. Extending the
'Global' constructor is not an option, so now what? Code:
View 3 Replies
View Related
Dec 13, 2011
I'm trying to keep visitors from using % to do a full sheach on a database in calssic asp using javascript
View 1 Replies
View Related
Aug 22, 2011
is there a way using .htaccess or some other means that we can block certain websites from appearing when we do a google search of my wife's name? We contacted google and they denied our request to have these websites blocked. My wife has her own website she uses for her business. There was an .htaccess editor website that I visited that created the code after I specified the url of the websites we wanted blocked. Will this work and if so, after creating the .htaccess file what do I do with it, that is where do I attach it/post it? (this is the first time i've ever posted anything on a website. my wife and I are technophobes.)
View 2 Replies
View Related
May 13, 2009
How can I write up a script to remove all ads from one my pages. It's an experiment, so don't go around thinking I'm cheating my ad publishers.
I have a database of ad publishers for example, how can i remove all objects... images, flash, etc coming from that url
Or can I block anything being loaded from that url altogether?
View 1 Replies
View Related
May 26, 2009
I got a problem with the code below. When I run through all cookies, only the first one's gets tested by that if-block. The others seem to just pass it, no matter if they'd pass that if test or not. It always reaches the "AFTER IF-BLOCK" part. Anybody know why every iteration except the first skips the if-block, no matter what?
Code JavaScript:
var cookies = document.cookie.split(";");
var cookies_tmp = [];
for (var i=0;i < (cookies.length-1);i++) {[code]].........
View 2 Replies
View Related
Feb 5, 2010
How can you block some or all links on a website?For example, when a visitor lands on the homepage and see a link to another page on the homepage.. How can you block the link to another page and make a popup appear with links and text...?To elaborate my question, here is an example:visitor come on a homepage of a website..he sees a link to a wonderful article.. when he clicks it, the link is blocked and a popup appears asking him to checkout a free offer and once you enter your email address, the link will become accessible
View 12 Replies
View Related
Oct 31, 2006
I have a windows media file that I want to play on a webpage but the stupid activex content blocker keeps on poping up. I have heard that there is a way of getting around this or to preload the content. Does anyone know how to do this?
View 2 Replies
View Related
May 16, 2007
i have a javascript file on my server and i am looking for a script i can use to make it so that a user can not just type the address of the javascript file in the address bar and see it.
is it possible to make it so the file can't be viewed alone. i know that can be done with css.
View 4 Replies
View Related
Nov 12, 2002
I was saw somewhere how to block access to a web site according to someone's IP number.
I have a guy who is harrasing me since we are competitors and I don't want him accessing my business site from his home, or his work.
I have his IP numbers from both locations through e-mails he has sent me in the past.
Anybody know how to do this? If I remember correctly, I think it was a javascrip that had the ability to accomplish this.
View 10 Replies
View Related
Dec 15, 2010
I have about ten tables that I want to show/hide depending on various Radio button clicks. When the page first opens, all tables are hidden. When you click the first radio after opening it shows the correct table, however if you click on the second radio choice and then click the first choice nothing happens. If the user selects the wrong choice when they first enter the page, I want them to be able to select the correct choice without having to close and re-open. What I find odd, is if I click back and forth between the other radio buttons everything works correctly. It only fails on the first radio button. I have multiple pages with the same format of code and this happens on every page.
Code:
function CustPage(option){
document.getElementById('custtype').value = option.value;
if(document.getElementById('custtype').value == "Cust Add Sell"){
[code]...
View 6 Replies
View Related
Apr 8, 2011
How can I add the below block of code to html page dynamically (i.e., at run time).
Code:
<script language="javascript" >
function a()
{
alert("Added");
}
</script>
Note: I do not want to keep the function in an external js file and add it as a src.
View 4 Replies
View Related
May 23, 2011
I want to use javascript to add all the formatting to the div. It works in Firefox but not in other browsers. IE and Chrome keep linebreaks around the div for some reason. What am I doing wrong?
[Code]....
View 4 Replies
View Related
Apr 8, 2009
I'm building this gallery that will display 12 images per page, 3 in each row
I am dynamically creating the content with javascript and the end reseult will look something like this
CODE:
As I said before there will be three thumb_containers per row, this works fine in ie8 and firefox, but it fails miserably in ie7, the images drop down vertically rather than horizontally, it looks like the p is causing the problems because it works fine without it,
styles are
CODE:
View 2 Replies
View Related
Jul 20, 2005
I have a block of html code looking like this
<FORM name=myform>
<INPUT type=text name=firstname>
<DIV id=mydiv>
<INPUT type=text name=address>
</DIV>
</FORM>
i can access firstname field with document.myform.firstname
but how to reference to address field which is inside a DIV block.
nor document.myform.mydiv.address neither document.myform.mydiv.document.address works
View 18 Replies
View Related
May 27, 2011
I have this code:
$('#clickshow1').mouseover(function() {
$('#menu1').slideDown('slow');
});
$("#first").bind("mouseleave",function(){
$('#menu1').slideUp('slow');
});
I would like the second don't work as the first is not finished. Because I have a "yoyo" effect.
View 2 Replies
View Related
Apr 29, 2010
i built a application with the jquery-plugin jstree to maniputate a tree stored in a database. all actions like create, move, delete and rename are fire up ajax-calls to php-scripts with mysql-querys. i got it to work, to display a trobber and 'waiting'-text during the ajax-calls, but what i also want to do is blocking" the site for this time, so that the user HAS TO wait and couldn't click somewhere else. This blocking should be should be visible like the behaviour of modalwindows. the background should be with a dark overlay.
View 1 Replies
View Related
May 7, 2010
<!
DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<
html
[Code]....
I have code like above. When user click on row i fire event click() on 'a' elem. But firing this event fire row click() event and i have neverending loop. How to block firing click() on row?
View 1 Replies
View Related
Mar 27, 2010
I have a structure of similar blocks
- all containig a clickable image
- each identified by a unique hidden index
I want to find the value of that index when clicking on the image The code is something like :
<div class="bloc">
<p class="enTete">
<img class="modif" src="monImage">
<input type="hidden" value="1" />
[Code].....
How can i write the selector to read the right index when one the image is selected ?
Somethig like : (The '?' means I dont find how to do !!!!)
$(' ? .modif').click(function() {
test = $(' ? .index').val();
alert(test);
});
View 1 Replies
View Related
Dec 5, 2010
I have a page where I list hardware devices we monitor for customers. Each row displayed also shows the status of the device i.e. whether it's running, paused, starting up etc.
To improve page load times I list the devices but don't query for their status until the page is rendered. This is because some queries such as via SNMP or other API's can take as much as 5-10 seconds to respond. So for a list of say ten devices it could take well over a minute of the user looking at a blank page. So I do the following instead -
On the device list page I have the following script:
$(document).ready(function () {
var devices = $('div[name="runStatus"]');
devices.each(function () {
// Get device ID (I embed this using the HTML5
[Code]....
What I'm finding is that if I allow this script to run, all links on the page become unresponsive.
I'm guessing this is because I've quite a few almost parallel async requests blocking until they get a response from the server and somehow the "UI thread" is being blocked by this?
However I thought this wasn't supposed to happen with AJAX.
I find this 'blocking' behaviour to happen in IE8, Chrome 8.0 and Firefox 3.6. Chrome in fact shows the arrow cursor + spinning-toilet-bowl-of-death (I'm using Windows 7) as if the page isn't completely rendered.
There are only six or so items in the list and happens even if I comment out the $('div[data[data-deviceid=... line.
View 2 Replies
View Related
Feb 2, 2010
Here is a list of block-level elements: [URL]. What is the best way to detect these using JavaScript?
View 5 Replies
View Related
Jul 23, 2009
I'm attempting to design a website for a nonprofit and have very little experience. A very close friend of mine just passed away from this cancer, and I'm trying to help give their site a better image.This is the mock outline I have now of the menu i'm trying to make:http://kttns.org/wmtvlI would like each one of the side buttons to change the middle text block without reloading the page (and resize if possible, but i don't know if i need/want that)
View 5 Replies
View Related
Jul 5, 2007
I have a javascript/html/css issue that I'm trying to solve for about 3 days now, with no luck. I'm using javascript to toggle the visibility of a certain table. I set the table's display property to none (via js) in order to hide it and to block in order to show it. However, applying block in the display property of a table seems to be having trouble with firefox.
See below what display:block does to a table in firefox: This simple html code:
<table style="display:block" border="1" width="100%">
<tr><td width="100%">test</td></tr></table>
produces this result in firefox:
Notice how the td has the size of the content and does not stretch to the size of the table (although it has a width="100%")? In IE it works fine btw.
If I change my js code to apply "table" to the display property of the table in order to show it, it doesn't show up at all in IE!
View 8 Replies
View Related
Oct 29, 2009
I am updating an online scheduler for my office manager. I have encountered a particular problem that I can't figure out at all. The scheduler is a table organized by resource and time - if there is nothing scheduled but that particular resource/time is available a '+' is placed in the appropriate cell. A '-' is used for unavailability. When you hold your mouse over a '+', '-', or scheduled event (which is a colored box) a JS tooltip appears to provide information about that time or scheduled event. None of this is the problem.My problem is this: after adding the JS tooltip code IE on Windows XP (haven't tested on other OS's) exhibits a strange behavior. All the '+''s, when moused over, turn into a solid block which never reverts back to the '+'. It shouldn't become a solid block at all, btw. This same behavior is not observed for the '-''s.The code is large, so I won't post all of it, but I'll post what I think makes sense. This is the fxn where I've specified the tooltip:
/**
* Prints out blank columns
* @param int $cols number of columns to print out
[code]....
View 1 Replies
View Related
Apr 21, 2010
I am doing a project for web programming class, and it's about forms and checkboxes. One of the requirements is to make a function that allows you to mouseover a div block and it will increase the size of the text in THAT div block by 25%. It's really werid, because I cannot find ANYTHING on the internet about it. I know the function would be as so:
<script type="text/javascript">
<!--
function divFontSize{
document.getElementbyId("sizeup").style.display = "
-->
Or something of that relevance. I need to know what I could use in order to increase the size of font INSIDE of a div element by 25%. I also need a mouseout that will bring it back to it's original state.
View 4 Replies
View Related