Can't Make Things Appear / Disappear In IE

Jul 28, 2005

I'm trying to make selected text appear / disappear depending on what the user clicks on. It works perfectly (as far as i can tell) in firefox, but in IE i get "Could not get the display property. Invalid argument". the strange thing is, it will make things disappear, but not show. I'm trying to change the display from 'none' to 'table-row' because that's the only thing that would display properly in firefox. here is the applicable [code]...

View 6 Replies


ADVERTISEMENT

JQuery :: Make Hidden Things Not Show Up On Load / Refresh?

Dec 23, 2010

I have some contents on my page that are displayed on click or hover.Therefore, initially they are hidden using the hide() method.

They work fine as intended.

But if it is a slow computer, you can see them on the screen for a second or two before they disappear. Or if the user refreshes the page - you get the same thing happen. How can I prevent this?

View 3 Replies View Related

Possible To Make Image Disappear?

Feb 22, 2010

I'm not sure if what I'd like to do is possible, but it seems like it should be easy to do.

The website (and specific page I'm inquiring about) is

What I created is a list of projects, and upon rolling over a project name, an image appears that relates to that project on the right. Simple CSS trick.

In addition to this, I'd like for when the page first loads for there to be a placeholder image on the right hand side, and after the user hovers over the first project, the image would disappear and not return.

I think this makes sense to do so the user has something to look at before they start hovering over project names, instead of there just being a giant blank space.

Is this possible? It seems like it should be easy, but I really know nothing about Javascript.

View 3 Replies View Related

Can't Make My Divs Appear / Disappear With JS - Sort It?

Mar 13, 2009

Can you explain to me why this code doesn't make my div appear/disappear? I'm new to JS, and just can't quite figure it out.code...

View 6 Replies View Related

Onblur Is Supposed To Make The Popup Menu Disappear - Not Working

Feb 22, 2009

I am trying to make a onblur make something go away. I thouhgt i had this settled before, but then i tried it, and it didnt work, but i cant find the other thread.The onblur is supposed to make the popup menu disapear when it is clicked off

[Code]....

View 8 Replies View Related

Make A Regex To Replace Diff. Characters With Diff. Things?

Jun 15, 2011

Is there a way to make one regex to replace a space with " " and a tab with " "?

Currently I'm using two regex's with string.replace( ... ).replace( ... ), but that means it has to run through the string twice. Any way to do what I want in one regex?

View 4 Replies View Related

Make Text Disappear In Text Input?

Dec 2, 2010

How can I create a text input field which has a value displayed by default and when a use clicks in the filed, it disappears? Similar to a "search..." box - when a use goes to search, the "search..." text disappears.

View 1 Replies View Related

Listing Things In A DIV With JS?

May 27, 2009

I've made a code that finds the factors of an inputted number. Here's the script code...

However, when I factor it, It will go to a blank unformatted page to list the factors. How can I list the factors on the webpage itself like a div? I tried using a <div> and innerHTML but it only lists one factor.

View 3 Replies View Related

JQuery :: Fading Things In And Out?

Dec 31, 2011

i have a problem with fading things in and out using jquery. Please check it out.THe problem is that sometimes the fading in happens before the fading out. What can be done to fix it?

[Code]...

View 12 Replies View Related

Changing Things With A Button?

Nov 9, 2009

i have a box:

<img id="imgSearch" src="" alt="Websites" />
<input type="button" value="Toggle Search" id="btnSearch" />
^being the button to toggle between websites.

basically i'd like this button to toggle between different websites when clicked.

secondly:changing span tag colors

html code:

Traffic Light: <span id="trafficLight"></span>
<input type="button" value="Prevent Accident" id="btnTraffic" />

i'd like to change the color of this span id by pressing the button. so in this case it would change red, yellow green and last:

changing the font in a bold tag bold by pressing a button

html code: (note, the font weight in normal in css for bold)
<b>i want this bold when you hit the button!</b>
<input type="button" value="Set Bold" id="btnBold" />

View 1 Replies View Related

Checkbox Do 2 Different Things After It Is Clicked?

Jun 13, 2010

Can a checkbox do 2 different things after it is clicked? Right now I am using this...

<input type="checkbox" onclick="processCheckbox(this);">
<input type="checkbox" onclick="activLink(this.checked)">

I don't want to have 2 checkboxes on my page, just 1 and get the same result.

View 2 Replies View Related

Are There Such Things As Pointers In Javascript?

Jun 6, 2007

Are there pointers in Javascript available, like for example in Turbo Pascal 7? :)

So i could use
function TestFunc(PointerToFunctionA, FunctionAItself) {
FunctionAItself('Hallo'));
//And how to use the Pointer then?
PointerToFunction('Hallo')...???
}
function PassedFunction(TextToShow) { alert(TextToShow); }

TestFunc(^PassedFunction,PassedFunction);

View 2 Replies View Related

Scroll 2 Things At Once (the Player Div And The Global_map Div)?

Nov 12, 2009

i have found an engine that i would like to edit, in the following javascript code, it will contain code on moving a player to the left, what i want is for every 32px it moves the player left, i want it to also to scroll the map at the same time (it's all contained in a div called "global_map") -

function player_move_left(user_id, bloc_id, charaset, prefix)
{
var player_id = prefix + user_id;[code]....

how to scroll 2 things at the same time (the player div and the global_map div)

View 2 Replies View Related

PING - And Do Different Things Depending On The Result

May 9, 2009

Is there a way to do a PING from within Javascript and do different things depending on the result, kinda like

Look at [url]

Hover the mouse pointer over the labels for doofus and dingbat to see how I want it to look.

View 2 Replies View Related

Jquery :: Shadow Slowing Things Down?

Oct 24, 2009

I'm developing a website utilizing Jquery Drop Shadow and thickbox and other things. I just implemented the thickbox and thought that maybe the slow response was my system (I've had photoshop, 12+ browser windows up, etc). I realize that may not be the case and I suspect jquery's drop shadow is a hog. I don't want to go through the entire code and implement a different shadow method at this point. Instead I'm wondering if anyone can verify this issue

[URL]... Click on the "Film Reel" and it may be especially slow to load. If you suspect it is my use of the Jquery Drop Shadow, can you recommend ways I could optimize it? One idea I have is to toggle it off and on when thickbox is opened and closed. However I don't know how to do that yet.

View 4 Replies View Related

Validate Multiple Things On A Form?

Apr 15, 2011

I wanted to validate the credit card numbers (I know that's not necessarily safe but I'm living recklessly and we have SSL on this )...

I found some javascript methods but I already have an "onclick" event on my submit button (to make sure people agree to the cancellation policy)....

Is there a way to multitask and do all those things with one script?

View 14 Replies View Related

JQuery :: SlideDown Without Pushing Other Things Down?

May 25, 2009

How can I make something in jQuery slideDown without pushing things under it down? To take it out of the flow so it just overlays a slidedown like a typical dropdown menu? Can slideDown be used for that?

View 2 Replies View Related

Things Just Fail To Work - Giving Null Error?

Apr 10, 2009

Is there a reason why this wouldn't work??

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>[code]....

Gives me the same null error, sometimes I get a "nav" is not defined, but again this is in both IE and FF.

View 2 Replies View Related

Creating A Form Where A User Can Enter Prices For Things?

Dec 10, 2011

today I am creating a form where a user can enter prices for things. I want to use javascript to display a total so far and it should update automatically as the user
nters/changes new prices.I have a form which looks something like this:

<form method="post" action="mailer.php" name="contact">
Price 1 <input type="text" name="stampprice[]" size="5" onchange="calculate_total()">
Price 2 <input type="text" name="stampprice[]" size="5" onchange="calculate_total()">

[code]....

View 1 Replies View Related

Script That Outputs Different Things Based On When Feed Was Updated

Aug 25, 2006

I am trying to make a script that outputs a block of code depending how recently a certain feed was updated. for example, if it was updated today, the output would hopefully be <div class="andrewupdated andrewtoday"></div>But currently nothing is being output. Code:

View 1 Replies View Related

Cannot Add To Address Bar Anymore - Allow The User To Change The Page Designs And Other Things

Sep 13, 2011

I have one site that has a bunch of cool easy javascript tricks that allow the user to change the page designs and other things. I had put a lot of time, effort, and $$$ into this site, and it was where I make partial income to provide for my family. Lately, I have noticed that some browsers (Chrome) will not allow the user to paste my javascript codes into their address bar.

Example: if user pastes "javascript: alert(2+2);" into their address bar in Chrome (and some IE I have heard from visitors) it will do a google search on alert(2+2) and will completely strip the "javascript" part out.

View 8 Replies View Related

Doesn't Lightbox Look Right - Put A Background Behind Things Like The Caption And To Give It A Bigger Boarder?

Jan 18, 2009

I'm using the original lightbox script, took the code exactly as it was given but it doesn't look like the demo: [URL] What do I need to do to put a background behind things like the caption and to give it a bigger boarder? Example here: [URL]

View 1 Replies View Related

JQuery :: Malsup Cycle Plugin: Pager Disappears In IE7/bold Text Does Odd Things

Feb 22, 2011

I have the cycle plugin running, works fine on all but IE7 (not catering to IE6). The pager elements on the right do not appear in IE7. I have tried adjusting the z-index, etc., but can't figure it out.

Also, the caption text transitions in with bolded elements properly appearing, and then they flip to regular text (the whole line of text transitions a bit strangely).

View 4 Replies View Related

Universal Browser Compatibility - Mobile Device Connectivity This Is Making Things Even Harder

Feb 7, 2011

We run a click and sales tracking solution for our advertisers and as such we are having a few issues with browser compatability for certian sites that are ont eh Magento platform. Essentially we are just trying to create an image call in javascript that uses a few pre-populated variables from the checkout process.

So teh issue we are having doesn't seem to be broser specific. We are trying to simplify the javascript call to ensure we have the highest possible chance of compatiablity. Obviously now with so many differnt browsers and also mobile devide connectivity this is making things even harder. We know that our javascript calls are failing as we've been monitoring our IIS logs and can see the image calls are being made with blank variables. There are 3 different elements to our checkout calls that maybe you guys have experience of with possible issues or fixes:

1. unescape function
2. onload event function for images
3. creating images dynamically

these are very basic elements of the javascript core but aout 5-10% of our calls are failing with blank variables being passed into the image call. So the questions is what elements of our call will be the possibel sources of failure?

[Code]....

View 1 Replies View Related

Automatically Populate Things Into The Respective Fields - Read The First Line In The Textbox And Load It Into Contact Person Field

Jun 9, 2009

1)i need to create a form with few fields like phoneno,website,address etc and one text area.
2) i copy n paste the details in the textarea n when i click d button. it should automatically populate things into the respective fields.

here s my logic wt i taught of:

1)read the first line in the textbox and load it into contact person field.
2)find the @ symbol and put it into the respective field and if there are more than 1 mail id load it into the same feild using commas.
3)if the phone no is 10 digits then load it into the mobile field else load the rest it into phone field.
4)find for words like road,street,block,stage,floor etc,if present then load it into the address field till the last comma is encountered.
5)the last digits in the address should be loaded into the pincode field.
6)the last word present in the address after the last comma and before the hyphen should be loaded into the city field.
7)find for www or http and load it into the website field,if not found leave it blank.

View 2 Replies View Related

Textarea To Appear/disappear

Jul 20, 2005

How can I make a textarea appear or disappear at the click of a button or
link?

View 4 Replies View Related







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