Alter Code To Remove Scrollbar & Address Bar - Only Work In IE

Jan 7, 2006

It's been too long since I've used javascript! What do I need to add to this code in order to remove the scrollbar (or scrolling option) and the browsers' address & tool bars?

Code:
<script language=javascript>
<!--hide from old browsers
window.resizeTo(600,500);
window.opener = self;
//-->
</script>

The above code is in the <head> of the page that is being resized and stripped of scroll/address/tool bars. And will it only work in IE?

View 14 Replies


ADVERTISEMENT

Alert() Statement Lets Code Work, Remove It, Code Errors Out

Dec 17, 2007

I am a novice, almost to an intermediate-level JavaScript guy, so much of this is new to me. I appreciate your patience reading this.

I have a routine that creates some HTML on the fly (updateFilters() function) and after the HTML is created, I attempt to access some fields (elements) on the form itself.

I works fine if I place an alert() statement after the HTML is created, but when I remove, the code errors out.

I have tried the setTimeout() statement, but I cannot grab the element --- undefined or null is returned. It seems that the form is the only element I can get a handle on --- everything else is undefined or null...

Here is the code:

function editQuery() {
var f;
var x;
var myForm = document.forms[0];
// Get the row filters that were used in the last query..
for (f = 1; f < 16; f++) {
var filter = eval("myForm.FilterList_" + f);
if (filter.selectedIndex > 0) {
var methodElement = element("FilterMethod_" + f);
var methodIndex = methodElement.selectedIndex;
var savedFilterMethodValue = methodElement.options[methodIndex].text;
var choicesElement = element("FilterChoices_" + f);
var choicesIndex = choicesElement.selectedIndex;
if (isNaN(choicesIndex)) {
var savedFitlerValues = choicesElement.value;
}
else {
var savedFitlerValues = choicesElement.options[choicesIndex].text;
}
updateFilters(filter); // update the filters
// take the saved methods and values and then update the selections
// Alert here makes the code work..
// alert("Try this");
// Wait for HTML..
setTimeout("completeEdit()", 1000);
function completeEdit() {
// Since the object was updated, get the object again..
var methodElement = element("FilterMethod_" + f);
for (x = 0; x < methodElement.options.length; x++) {
if (methodElement.options[x].text == savedFilterMethodValue) {
methodElement.options[x].selected = true;
break;
}
else {
methodElement.options[x].selected = false;
}
}
// Since the object was updated, get the object again..
var choicesElement = element("FilterChoices_" + f);
for (x = 0; x < choicesElement.options.length; x++) {
if (choicesElement.options[x].text == savedFitlerValues) {
choicesElement.options[x].selected = true;
break;
}
else {
choicesElement.options[x].selected = false;
}
}
// Only display next row if f = 2..
// If only one row was used, no reason display the next row..
if (f == 2) {
displayNextFilter(f - 1); // display it
}
}
clearTimeout(timeOut);
}
}
}

Do I have to pass the object (the form, the elements) to the completeEdit() function in the setTimeout() statement?

View 5 Replies View Related

Can I Remove Somehow The Horizontal Scrollbar?

Jul 20, 2005

Can i remove somehow the horizontal scrollbar? just the horizontal!

View 1 Replies View Related

How To Alter This Code To Display Captions From Alt Tags

Jul 24, 2010

At the moment, the script creates a gallery with thumbnails from a list of images (from my basic understanding), and I want to add to it so the current code also picks up the text from the alt tag and displays that within a div box positioned absolutely elsewhere on the page, when the main image is displayed.Here is the javascript:

var gal = {
init : function() {
if (!document.getElementById || !document.createElement || !document.appendChild) return

[code]....

View 2 Replies View Related

Remove The Address Bar?

Jun 8, 2009

I'm just coding a pop-up window and do not want the address bar to appear.

Or if it is even possible?!

My code is currently:

[CODE]
window.open('/flash_popup.php','win','height=600,width=695,toolbar=0,scrollbars=0,fullscreen=0,left=150,location=0 ,menubar=0,resizable=0,status=0');
[ICODE]

View 1 Replies View Related

JQuery :: Find And Remove/replace An Email Address From A Textarea Input Either Before The Form Is Submitted Or After?

Feb 18, 2011

its possible to use jQuery to find and remove/replace an email address from a textarea input either before the form is submitted or after?

View 1 Replies View Related

Run Code In Address Bar After Page Loaded?

Aug 2, 2011

My source :

<html>
<head>
<title></title>
<script type="text/javascript">

[Code]....

I want after newtab is opened 5s, alert window will be opened with message:"Loaded complete". Then 2s it is closed. But it isn't what I expect.

View 3 Replies View Related

How To Not Follow With A Similar Code In The Address Bar

Sep 28, 2010

This use to work for me when i placed it in the browsers address bar to follow someone on twitter.

javascript:alert($('.follow-button').click());

how to not follow with a similar code in the address bar?

View 2 Replies View Related

Getting The Address Field To Work (Validating)

Apr 29, 2011

I have tried numerous attempts in getting the Address field to work (i.e. validated). I want it to accept letters, numbers, spaces and commas! However, it won't let me! Below is the code I have provided.

[Code]...

View 13 Replies View Related

Retrieve The Source Code Of Excuted From The Address Bar?

Sep 9, 2011

Let me give an example: javascript: var myvar=10; function myfunc(){}; void(0); After excuting the above js source code in the address bar of my browser, I can use window.myvar and window.myfunc() to access myvar and myfunc. This indicates that the above "address-bar javascript code" must have been stored somewhere in the current page.

My question is: where is the "address-bar javascript code" stored in the current page? or equivalently, is it possible to retrieve the "address-bar javascript code" by using some other javascript codes?

I checked document.childNodes and document.documentElement, but cannot find the javascript source code. Maybe the source code is stored in the window object? How to retrieve it?

View 3 Replies View Related

JQuery :: Hide Code - Add Code To An External Js Sheet It Doesnt Seem To Work?

Jan 6, 2011

I am trying to hide this code:

HTML Code:

using this code

HTML Code:

This works fine when I place this code under the html in the main source, but if I try to add this Jquery code to an external js sheet it doesnt seem to work?

Currently my js sheet is called in the header, when I move this link to the footer of my page the code works again, so Im guessing this has something to do with where the jquery code is placed in relation to the code Im trying to hide?

How I can keep my js in the header but still make the content disappear on click?

View 2 Replies View Related

JQuery :: Code For Creating A Popup Window After Login Without Address Bar & Status Bar In Firefox And IE?

May 26, 2010

i need window popup ! not div up i tried [URL]... html this link sample ! it is not at all working

View 1 Replies View Related

JQuery :: .remove Does Not Seem To Work?

Nov 24, 2011

I have a page where I need to insert some html elements dynamically and I use append. It seems to work fine. But then at a later point I also need to remove the elements I added and I am using the remove function but does not seem to work. As you can see in my code, I tested the effect on the element by storing the html both before and after calling the remove method. But both variables (before and after the remove function call) holds the same html. In other words, the element that was supposed to have been removed is still there.

[Code]..

View 3 Replies View Related

JQuery :: Can't Get '.remove' To Work Inside Div?

Jul 18, 2010

I am trying to put a remove link beside each newly created input. It doesn't work. It only works if I put the remove link in the HTML and not inject it dynamically. Can anybody work out why this would be?

[Code]...

View 2 Replies View Related

JQuery :: Remove() And Empy() Not Work For Xml?

Sep 5, 2009

I have to remove a node from XML using jquery but remove() and empty()is not working.

var xmlData = {xml document};
$(xmlData).find({node}).each(function(){
$(this).remove(); or $(this).parent().empty();
})

This work fine for firefox but not work in ie.Can anybody provide me with some workaround so that i'll be able to remove node from XML.

View 3 Replies View Related

Minimalization And Configuration - Remove Some Lines Of Code ?

Feb 23, 2009

What I want to do is remove some lines of code, because more lines are bad and I hate them. I'm all about minimal lines in a project. I'm also all about making quality projects that can be easily changed, edited, updated, etc.

So what I need is a way to minimalize the following block of code, and make it available in a seperate javascript source file (*.js)

Code:

View 1 Replies View Related

JQuery :: .remove() Function Doesn't Work In IE8?

Nov 2, 2010

my script that works in firefox/opera like a charm, but doesn't so in IE8.

Here we go:

$(document).ready(function(){
$(".folder").live('click',function(){
var id = $(this).attr("id");
if($('#' + id).hasClass('folderClosed')){

[Code].....

The basic idea is to show a "virtual" directorie from a mysql database over json. The first part works also quit well, only the .remove() function doesn't work right, which means the sub <ul> elements remaining on the page.

View 1 Replies View Related

JQuery :: Remove Element : Doesn't Work?

Apr 12, 2010

I try to remove element using JQuery, but it doesn't work. The javascript DOM version will work. JQuery doesn't support bracket and dot in id value ?

[Code]...

View 1 Replies View Related

Select.remove(i) Doesn't Work Properly

Jan 13, 2010

the remove(i) doesn't remove the option[i] but works unexpectedly and removes the first 4 options.how to delete the selected index only?

View 1 Replies View Related

JQuery :: Remove (hide) Very Specific Line Of Code?

Oct 10, 2011

I have the following line of code in a page and I need to 'hide' the entire row [code]...

Is there a way to do that?

View 1 Replies View Related

Remove White Space From JavaScript Source Code

Oct 9, 2006

I wrote a JavaScript that removes the white space from javascript source code in order to speed up download times.

For instance:

View 3 Replies View Related

Jquery :: Remove Doesn't Work On Dynamically Created Tab / Fix It?

Feb 27, 2009

I love Jquery but I've got some starting problems. code...

When I click on the X the tab disappears, perfect, as it should be. But when I create a new tab and try to remove that one it doesn't do anything.

What im I doing wrong?

View 2 Replies View Related

Js Code For "confirm Email Address" Field

Sep 20, 2005

Right, "confirm." Not "verify."
Please help if you are willing.
It needs to also have a pop up or something that says it doesn't match what was previously typed. It also needs to require the character "@".

Here is what someone gave me in php but I can't get it to work:

PHP Code:
$first_email = $_POST['first_email'];
$second_email = $_POST['second_email'];

if($first_email != $second_email)
{
$error = true;
$message = 'Your email addresses do not match'
}

you can do whatever you want instead of $error = true; If you decide to go this method do something like this for your form

PHP Code:
<?php
if($error) echo $message;
else
{
?>
<form name="
.....
</form>
<?php
}
?>

View 3 Replies View Related

Adding The Link Address To Outlook Express Address Book

Mar 16, 2011

i want to add the link address when clicked on the link in web page to the outlook express address book when the outlook window populates. i tried to put

<a href="mailto:enquiry@mydomain.com" > click here </a>

but it only add address to the To section of outlook window, i want it should store the address in the address book.. of outlook express..

View 1 Replies View Related

Getting URL Address From The Address Bar To Flash App Embedded Using SWFObject

Jul 14, 2010

I have been looking for a solution for a long time. I have embedded a SWF app in html page using SWFObject. Now I need to give the Flash app the address where it is currently embedded, since the same SWF file is embedded in more than one locations! So the Flash app is supposed to pull the right content according to its current position

View 9 Replies View Related

JQuery :: Just Cannot Get Simple Code To Work In IE 8

Dec 1, 2011

I've tried to address this issue multiple times, and yet IE 8 simply ignores it. I know jquery has the capability of operating correctly with other examples, but the below code just doesn't seem to satisfy it.[code]

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved