Top Solutions

Tags:href, javascript, onclick

<a href="javascript:expand()">  and <a href="#" onclick="javascript:expand()">

what's the difference? i know the href="#" is the more standard way nowdays to do it. my problem is i have a standard dropdown menu that expand/collapse when user...

Tags:display, javascript, onclick, block, none

hello all!  I think this should be a pretty easy one.

I have the following code.  When the user clicks on the div containing the word "Menu", the lower div (id = dropper) displays as a block (which is fine).  However, when the user clicks on...

I've been searching and haven't found an answer yet. Is there a JavaScript function or xml request that can be sent to google maps api or Geocode to give a list or array of available countries in the Google's Geocode database, preferably by...

Tags:DTG, MILITARY DTG, DATE TIME GROUP, STANDARD DATE FORMAT

Hello all,

Can the following be done in SQL or do I need to use JavaScript or ASP. What I want to do is update a date field with data from a text field.

Field A - is a text field containing the Military Date Time Group (DTG) in the format...

Tags:javascript, onfocus, onblur

I'm trying to use OnFocus and Onblur to focus on a textbox when I click in the field.  When I click in the textbox the value for the textbox disappears so I can type what I want to enter. The only problem is if I don't type anything in the...

Tags:Year and Month Select dropdown Javascript?

Hi,

I have two dropdowns Year and Month
1. I need to display 4 years dynamically, current year and previous 3 years.
2. When first time page loads, current month and year is selected in the dropdown and displaying data accoding to that...

I have a input and a label, I want to set the text of the label if they enter an invalid date.

this is the code I am using .

if (!IsDate($("input#EffectiveCostDate").val()))
   {
      $("label#EffectiveCostDateError").val("Invalid...

Tags:javascript, file, write

Hi,

I would like to know if it is possible to use JavaScript to write to a text file. I tried using FileSystemObject in JavaScript. However, it gives the following error : "Automation server can't create object". Does anyone know what is going...

Tags:hand, onmouseover, cursor

I'd like the cursor style to switch to 'hand' onmouseover of particular images on a page,

i.e., wherever the images minus.gif or plus.gif appear on the page, I'd like onMouseOver="style.cursor='hand'" to take effect.

Is this possible? How?

Tags:Google Maps API, XHTML, XML

Building on this question:
http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/Q_23531323.html

Visit this page and you will see that Google says the driving distance is 237 miles...

Tags:ExtJS, Javascript, JSON

Hi,

I have a page that when the users selects a row from a grid, and clicks the 'Edit Review Record', opens the window that loads data, everything works fine for the first time the win.show() is invoked.

However after closing the window...

Tags:window, resize, onload

As you might guess from the question title, I would appreciate someone showing me how to get a browser window to

- load to a specified size
- at a specified position
- have no toolbars
- no scrollbars
-no address bar

I don't want...

Tags:javascript, selected, set

I have a hidden field which contains a value.  I have a SELECT/OPTION list that has no selected options.  After the select is written to the browser, I want to make to option, corresponding to the hidden value to become selected.  The JavaScript...

Tags:javascript, exit

I have a form on a web page.  When my "Submit" button is pressed, a function is called that validates my form.  If a particular radio button is selected, I want to exit the function and forget validating the form.  Here is my sample code:

On...

Tags:Javascript, Mootools, IE7, 'null' is null or not an object

Hi
I am getting an error in IE 7 only and it doesnt move.  It works in Firefox.

It's complaining about this line:

var myTicker = new Ticker('newsticker',{toggleButton:'toggle'});

Can anyone offer any advice on a solution please?

Tags:JavaScript, CSS, HTML, iframe

I have a page where I need to display a webpage but it needs to be mini. My best thought is to use an iframe and then set the zoom to be like 35%. This works in IE7 but not in FF3.

Is there a way to set the zoom for an iframe for FF3?

If...

Tags:Javascript, .Net, DotNetNuke, Telerik

Hey there everyone, I'm hoping there is a simple fix for this, but I would accept a complicated one after messing around with it for the last day and a half!

I am putting together a module that will drop into a DotNetNuke portal and I'm...

Tags:make, tag, invisible, img, html

I am using an img tag in html that I want to not be visible when the page loads (that part works)

But I want to programatically make it show up and am apparently doing something wrong because the code
executes (I have an alert before and...

Hello,

I need some help re-writing a script for our knowledge base, I want the user to be able to press enter via the keyboard instead of the Query button to quickly navigate to the desired solution.

When the user clicks enter the on...

Hi

i have the following tag

<td width="96" height="43" background="aware_fichiers/btn_down.jpg"  
onmouseover="this.style.backgroundImage='url(aware_fichiers/btn_up.jpg)';" ...

Tags:Javascript, JQuery

Hi there

I'm trying  use jquery to change the size of a popup document window so that the main image on the page will always be visable regardless of image size
eg: (see code snippet)


This isnt working though ?

Tags:javascript, replace, all

I have a need to have text go between a textarea and a div and a database

To get from the database to the screen I replace \r\n with <br> and it is displayed in the div

From javascript I do

document.getElementById("NotesTextArea").value...

Tags:setelementbyid

Hello experts:

Say I have a table like this in my form:

<table id="my_table">
<tr>
   <td>value 1</td>
   <td>value 2</td>
   <td align="center">value 3</td>
</tr>
</table>

once the submit button is pressed, I want to replace...

Tags:enter

I am trying to disable ENTER in a form.  Several references have suggested using window.event.keyCode for MSIE.

In the code below, I capture each keypress in the text input; pressing ENTER returns "13".  Shifting focus out of the text input,...

Tags:Javascript, FF, IE6, IE7, Safari

I am new to dynamic table creation. This table is simple in concept.

Can add as many tables as nec. Each table can add/delete/toggle rows.

Table row 1): Cell1:Title, Cell2:Min/Max, Cell3:closeTable
Table row 2): Cell1:Content(form),...

Tags:ASP.NET, Javascript, C#

I'm trying to get the value of the hidden field "hidden1", but for whatever reason my Javascript code is not working.  

Any help would be appreciated.  

Tags:Extjs, panel, mouseover, mouseout, child, childs, event

Hi there again,
i have another Extjs question (currently using 3.2) and i cant find an answer in the internet (but some people have the same problem).
I have a panel (call it level1Panel) and in this level1Panel, i have some child-panels with...

Hello Experts,

I have the following HTML Markup below. Everything works fine except that the TextBox Control that I have to add based on the information from AJAX website tells you to use a TextBox for the content. My problem is that when I...

Tags:css, readonly

<style type="text/css">
  input {
    readonly:true;
  }
</style>

how to put readonly in css?

Tags:target, javascript, href

Is it possible to use an anchor to open a new window using target="_blank" and at the same time to use inline javascript to redirect the page in the first window to the previous page? Something like:

<a target="_blank"...

Tags:sim, tracker, card, mobile

I am looking for the primary software or application that I can add to a website that allows me to track a mobile phone / device with a SIM card in the UK and overseas. Does anybody know what the root application or system is as i can find many...

Tags:firefox, onkeypress

I saw a few questions that didn't really make any sense to me so I'm hoping that there's a really simple solution to my problem here.

I have this code.

onKeyPress="if (event.keyCode==45) event.returnValue=false;"

it works in IE but not...

Tags:javascript

Hello, I have a small problem with the way document.innerHTML.replace is interpreted..

Put this in the browser window and press enter..

javascript:document.body.innerHTML=document.body.innerHTML.replace(/JavaScript/g,'JS');

Ideally, only...

Hi

I really dont know javascript well and I have some code which is failing at the line saying document.findElememtByID. I can't see anything wrong with it and I've tried all sorts of different variations of captialising the method name too....

Tags:javascript, date, compare, comparison

I'm trying to compare 2 dates on a form. What is the simplest way to do this?  Here's what I have so far:

<html>


<script>

function Compare() {


if (document.frmTest.startDate.value > document.frmTest.endDate.value){
alert ("Start...

Tags:jquery, ie8, ie9, compatibility mode

I'm running into an issue with a Jquery lightbox on my site. I am running Jquery 1.6.1. When the page loads in regular mode (non-compatiblity), everything is fine. When it loads in compatibility mode (which seems to be forced by IE for alot of...

Tags:radio, javascript, button, uncheck, check

Quick question about my radio buttons and java script...

This is the code I have ->

function radio()
{
      if(document.form1.radio.checked == false)
      {
            document.form1.radio.checked = true;
      }
      else
      {
            document.form1.radio.checked =...

Tags:hide, title, javascript, bar, url

I wrote some pages in asp for a client.  Their partner is going to link to a page on this site (that also links to one other page).  We need to hide the URL so it is not apparent to a web user that the url has changed.  I don't think it matters...

Tags:Javascript, jquery, IE7, www.mercerbusinessdirectory.com/jquery_test.html

Hello,

I am trying to use a drop down box on my page. When a user selects a category from the list, I want to perform a function (filtering a table). I know the code for my table and the function to filter it is correct - it's selecting an...

Tags:javascript, confirm, delete

greetings,

i'm trying to write a function that i can pass a record ID to then pop a confirm box asking whether they really want to delete the record, if yes then  window.location.replace the querystring w/ the id to the delete.asp page.
...

Hi I want dropdownchecklist load and show up when user clicks on an input box (my list is too
long to load during the page refresh), so far it only loads, but i need to click the second time for checkboxes to show up, i tried different things, i...

I have a page that contains a 100px height header and below it an iframe that should take up the rest of the window's height.  I'm using javascript (jquery) to handle resizing the iframe to fit the window when the window is resized, however, it...

Tags:javascript, parent, object

Sorry this is quite long and complicated - only for the real experts - but quite fun I think.

I think it's easier to explain stuff with code - so here's a non-working example:

-------------------------------
function lib() {
   ...

Tags:javascript, html, internet explorer, firefox

the following code works in ie + fox

<img src = "images/p1.jpg"  id="myimage"
 onclick = "myimages.src='images/p2.jpg'"

what i need is that what ever image it is, it will just go to the next image #
example:
images/p1.jpg ...

Tags:javascript

I have a grid panel in ext js. One of the cells contains a url to a web site. When I click on the cell I can get the url and I do a window.open(url,name,features) but the window that opens prepends the http://current location to the url. I want a...

Tags:php / javascript, Internet Explorer 7

I am trying to create a php function using this code that will allow me to specify the use of an Alert or Confirmation box.  If a confirmation box is specified, I want the "ok" or "cancel" values to be passed back to the php code for action.  The...

Tags:jquery, javascript, photoswipe

Hi all,

I am using Photoswipe and JQuery Mobile and I think I might be doing something wrong here as I cannot get it to work.

All the JS and CSS files for Photoswipe are there but it's not affecting my page.

I've run out of ideas of what...

Tags:javascript, jquery, add row

I am using .clone in jquery to add a row to an exisiting table with jquery. That works fine but I need to increment the number after the input name and ID in each row.

So based on the CODE example, If I added a row to the bottom it would be...

Tags:back, button, disable, browser

how can I disable the browser's "Back" button in a HTML page?
I do not want to create JavaScript window to avoid showing any toolbar,etc.
In regular HTML page, is there any way to disable the back button in the toolbar?

thanks.
-skundu

Tags:clientid, javascript, textbox, passing

I have developed a site that uses both static ASP.net Textboxes and Dynamically created textboxes to hold dollar amounts.  I have also created a javascript that allows the user to type in " 1+2+3..." and onBlur will add the totals together. ...

I have a jqgrid and people will add or delete items off of the grid.

When someone adds a row, the first column is an item and the second column is a description of that item.

What I want to happen is when someone "selects" an item from the...

Tags:phpbb

I need to create a forum which will be split down into 3000 sub forums which is basically a forum for each company.

I have been told via the phpbb support forum that the phpbb software will not be able to cope with this amount of data.

Can...

Tags:javascript, firefox

I have a javascript function
function copyToClipboard(text) {
        if (window.clipboardData) window.clipboardData.setData("Text", text);
        else if (window.netscape) {
                    user_pref("signed.applets.codebase_principal_support",...

Tags:javascript, jQuery

I have a series of checkboxes, all with the same name.  Traditionally when I submit the form, I would receive the values of the checked boxes as a comma list, which is fine.

I am now submitting a form using AJAX, and need to get the values of...

Tags:PHP AJAX, IE 7

I've been trying to solve this problem all day and think I'm on to the base issue, but cannot figure out the final solution.

In the previous release of my website, my AJAX code supported only a single http_request object (XMLHttpRequest in...

Tags:JW Player, Flash, Adobe, Web Development, Streaming, Shoutcast

I setup the jw flash player and embedded it in an html page. We use a shoutcast server streamed by Spacial Audio. In the beginning it seemed to work great. But the users started complaining of skips or stops. A simple reload of the page fixes...

Tags:javascript, multiple, switch, case

I am trying to perform the equivilent to this vb statement:

Select case val
   Case "a","b"
       msgbox "go"
    Case else
       msgbox "nogo"
End Select

The trick is I DO NOT WANT TWO CASE STATMENTS

So instead of:
switch (val)...

The CKEditor is a cool tool, but their forum is a ghost town, and documentation is sparse. I don't think I have to worry about cross-posting...

Simple, question:

Q: How do I assign a style sheet of my choosing to use in the content area of...

Hi Experts,

I copied the sample code below from a related question the knowledgebase....

Is there any way, I can get the error message from the javascript to display in the html form itself, below the first name, last name and phone...

Tags:videojs, video js, javascript, html5, mp4, video, html5 video, mime type

My MP4 file is not playing in IE9 when using VideoJS on my HTML5 website:

http://www.colorshoutconcepts.com/

It seems like it wants to play (I see the Video JS video controls, and the "autostart" parameter appears to be being triggered) .....

Tags:get, javascript, id, element

I have a form with 200 plus checkboxes.  When the checkbox is checked onClick passes (this) to a Javascript function.  I need to get the element array ID of the just checked checkbox into a numeric variable.  The following routine never finds a...

Tags:window

I'm trying to find work out if a screen is maximised or not and then if it's not, move and resize the window.  Here's what I have so far:

<script>

var scr_w = screen.availWidth;
var scr_h = screen.availHeight;

if (scr_w != window.width...

Tags:iif, javascript

Hi experts,

Just a quick question; how would i do this in javascript:

(VB Code)

label.text = "Your name is " & IIF(UserID = 1,"bob","jeff") & " more writing..."

Thanks for your help!

Tags:javascript, save, dialog

Hi
I have to open a save as file dialog box using javascript on a click of button.

I am able to do that with the below code.

<a href="#" onclick="javascript: document.execCommand('SaveAs','1',null);"><img src="./images/save.gif"...

Tags:logout, javascript

I am deveoping a s/w in jsp where I use two frames. The left frame shows all the options and the corresponding forms are shown in right frame.I have a option for logout. The code I have given is
<A HREF="javascript:self.close()">Logout</a><BR>
...

Tags:Error #2048: Security Sandbox Violation

Hi,

I want to run a JsSocket on my local machine (localhost), i donwload JsSocket from http://code.google.com/p/jssockets/ , i create a sub-folder 'jssockets' under easyphp's 'www' folder, where i unzip the JsSocket package. after i edit the...

Tags:javascript, bar, address, hide, toolbar

Does any body know of a way using JavaScript to remove or hide a browser's address bar or toolbar on the fly? You can obviously use a script to pop open a new window and set the properties of that window like so:...

Tags:jquery, firefox

I am new to jquery and I have some code from a friend..

I want to add a criteria to the code below to accommodate

$(this)).attr("value")=="UnitedStates")

and

$(this)).attr("value")=="Canada")

a basic if then statement.

Thanks
...

Tags:textarea, validation, javascript

How can I validate a textarea is not empty? I use the code below, but it doesn't work well. Any suggestion? Thanks.

I use the following html code:
<form method="post" action="/EW/forms/form.jsp" id=formRequest name=Form onSubmit="return...

Tags:radio, javascript, button, value, selected

AFAIK, to retrieve the selected value for <SELECT> in a single line javascript, I have the following code:
this.form.areaID.options[this.form.areaID.selectedIndex].value

If I were wanted to do the same, retrive the selected value for <RADIO>...

Tags:embed, play, javascript

Hi Guys,

I am fairly advanced with JavaScript, but have been racking my brain with the most simple thing ever, HTML Embed. Basically, I'm trying to use the play() method to play a sound during a certain function. For some reason, it didn't...

I need a disclaimer window like the one on

http://www.4chan.org 18+ sections (not safe for work)

I have the relevant code from the site, but it is not working, any ideas?

Tags:CRM 2011, javascript, date format

I have a number of date fields on my forms that I want to format as MM/YYYY.  I have researched this and found some javascript examples of how to reformat a date field but I am stuck on how to display the modified format in the date field on the...

Tags:jquery mobile

I want to create a simple popup on my webapp using jquery mobile.
It needs to open some text within a <div> on the same page.

Any Pointers?

Tags:outerhtml, innerhtml

The question title really explains it, what is the difference between outerHTML and innerHTML? Some examples would be nice as well :)

Experts,

How can I reference my Update button (the one that fires the command update) on a datagrid through calling window.event.srcElement in javascript?

I basically have the following javascript function but its not properly referencing...

Tags:ext.js, IE 6

Hello ext.js experts.

I have posted this same question on an ext.js forum located here:
http://extjs.com/forum/showthread.php?p=244326#post244326

However, here I have attached a Word document which has screen shots which are not available...

Tags:vbscript, date, modified, last, files

I have a VBScript that ive been working with , its shy of what I'd like to accomplish .  I would like to be able to specify in the .ini to only output files last modified after a particular date or not modified within x amount of days.  This...

Tags:jqery, jquery mobile, phonegap

Hi Experts,

I am having major problems, and having searched the net cannot find an example or tutorial that I can get working with my code.

I am writing an app for IOS & Android using dreamweaver 5.5 / jqmobile / phonegap. In one of the...

Tags:confirm, custom, box

can i write custom confirm box in javascript.Instead of 'OK' and 'CANCEL' buttons i want to show 'YES' and 'NO' buttons.

Is it possible to do that.If yes how?

Tags:javascript, dropdownlist, loop, through

Hi,

I am using ASP.NET 2.0

I need to loop throug a DropDownList in a javaScript method. I need to get the value and the text of the entries. Please, can some one show me how to do this. I have posted a code snippet. I know how to get the...

Tags:minimize, javascript, maximize

I know this question has been answered, but I can't view the solution since I terminated my subscription to premium services.

I searched in the JavaScript Area for "minimize remove" - the second question seems to have the answer.  This should...

Tags:javascript

I am trying to validate a field for containing only Letters, Numbers, underscore and hypen.
It has some issues. Pl help.

Tags:Javascript

I need to get the date in the following format MM/DD/YYYY HH:MM:SS.mmm
 I tried this

 function setToday()
                               {
                                 var today = new Date;
                                 today =...

I have RadTabStrip from Telerik.
In a javascript function I would like to find the index of the selected tab. How is best to do that?

Tags:Javascript, ActiveXObject, IE

Hi, I've been trying to get the following code to work, it accesses what kind of PDF Reader the computer has and then should load it in the appropriate reader. The start, loads word and excel documents just fine in the applications I would like...

Tags:center, window, popup, position, screen

Hello guys:

I need a function to CENTER a popup window according the BROWSER SIZE AND POSITION AND STAYS ON TOP. Also, the function must work without passing the width and height parameters from the picture, because the only parameters that...

Tags:radio, disable, button, enable

I'm trying to, upon checking off a checkbox, enable/disable two radio buttons of the same group.

this is the onclick function thats called when a user checks off the checkbox:

function EnableDisableBehalfFlds() {
    if...

Tags:ASP.NET, C#, RadWindow, Telerik

We have a RadWindow working from an ASCX Control to display video content (SWF Object) which is on an ASPX page..

We have a 2nd RadWindow which displays a large image directly without having an ASPX page. we suspect that if we make the image...

Tags:javascript, pdf

I'm looking for a universal solution (or at least one support by Internet Explorer and Netscape) that will allow me to script the printing of a PDF document.  Currently we have a page that allows users to select which documents they would like to...

Tags:jquery

hi EE,
I have a page with several checkboxes within a table, can I have an example how to loop through each <label for=""></label> and corresponding checkboxes to create an onclick event for each one within the table?
I need the onclick event...

Tags:ASP, AJAX

The code below is an ASP and AJAX it works fine with this code in Javascript "(xmlHttp.open("GET",url,true)"

but when I change it to "xmlHttp.open("POST",url,true)", I get a blank page when I try to run it.

What am I doing wrong?

Thanks.

Tags:f5, disable, javascript, button, keyboard

Hi

I want to disable the F5 , Ctrl+R or Ctrl+ N, Backspace etc buttons. Actually i am developing Online test module and the purpose is the end user should not be able to refresh or open a new window in between the test. Here is the code which...

Tags:numpad, javascript, keycode

Hi,

For some strange reason I get keycodes from 96 to 105 when pressing keys on the keypad (0-9)

Theys keycodes corrospond with the characters: ` a  b c d e f g h i  instead of 0 1 2 3 4 5 6 7 8 9.....

I could ofcourse change the...

Tags:jquery, jcarousel

Hi,

I'm just wondering if this is possible. I would like it to continually play and not pause. The auto value is set to 0.1. Putting it to 0 turns off auto scrolling
I think it can be done with easing but it is a bit beyond my knowledge.
...

Tags:javascript

Hi There,
I need to iterate a html table, first by iterating each row and then by iterating each cell within the selected row as I must do some processing at tye start of each row:
var tr = document.getElementsByName('MyTable').rows;

how do...

Tags:javascript

ok I have a map that displays neighboring locations with a small marker and the current location with a large marker. (see the code below.)

The neighboring locations are created with a php loop.

I want an onclick event of the small markers...

Tags:full screen, javascript, fullscreen

Is it possible to use Javascript to allow users to toggle a full screen option if they wish?

I've found some Javascript that I think tries to execute the F11 for Firefox.

Is it possible to check the browser then depending on what browser it...

Hello, I'm piggybacking off this previously asked question. I wasn't able to find a solution using the incomplete answer provided.

My goal is to open Fancy box centered to the parent window from a link within an iframe. I'd like to keep as...

Tags:redirect, javascript

a click on the regular button (html line 1) works;
a click on the image button (html line 2) DOES NOT work.
Anyone?

Loading Advertisement...

Top JavaScript Experts

  1. leakim971

    511,289

    Sage

    2,168 points yesterday

    Profile
    Rank: Genius
  2. mplungjan

    291,279

    Guru

    2,800 points yesterday

    Profile
    Rank: Savant
  3. nap0leon

    195,491

    Guru

    0 points yesterday

    Profile
    Rank: Sage
  4. Proculopsis

    182,948

    Guru

    0 points yesterday

    Profile
    Rank: Sage
  5. COBOLdinosaur

    157,309

    Guru

    0 points yesterday

    Profile
    Rank: Genius
  6. chaituu

    130,684

    Master

    0 points yesterday

    Profile
    Rank: Sage
  7. Ray_Paseur

    130,217

    Master

    330 points yesterday

    Profile
    Rank: Savant
  8. tommyBoy

    125,345

    Master

    0 points yesterday

    Profile
    Rank: Genius
  9. StingRaY

    114,318

    Master

    0 points yesterday

    Profile
    Rank: Wizard
  10. DaveBaldwin

    80,081

    Master

    336 points yesterday

    Profile
    Rank: Genius
  11. ansudhindra

    79,054

    Master

    2,000 points yesterday

    Profile
    Rank: Wizard
  12. ChrisStanyon

    62,768

    Master

    800 points yesterday

    Profile
    Rank: Sage
  13. hielo

    61,266

    Master

    0 points yesterday

    Profile
    Rank: Savant
  14. HainKurt

    59,030

    Master

    0 points yesterday

    Profile
    Rank: Genius
  15. BuggyCoder

    54,739

    Master

    0 points yesterday

    Profile
    Rank: Sage
  16. mroonal

    54,339

    Master

    10 points yesterday

    Profile
    Rank: Sage
  17. tagit

    54,093

    Master

    1,600 points yesterday

    Profile
    Rank: Genius
  18. gurvinder372

    52,824

    Master

    10 points yesterday

    Profile
    Rank: Genius
  19. basicinstinct

    52,586

    Master

    0 points yesterday

    Profile
    Rank: Genius
  20. JonNorman

    45,158

    2,200 points yesterday

    Profile
    Rank: Master
  21. Lalit-Chandra

    44,420

    0 points yesterday

    Profile
    Rank: Master
  22. xmediaman

    36,450

    3,800 points yesterday

    Profile
    Rank: Guru
  23. kozaiwaniec

    33,100

    0 points yesterday

    Profile
    Rank: Guru
  24. Kravimir

    32,700

    0 points yesterday

    Profile
    Rank: Genius
  25. designatedinitializer

    32,300

    0 points yesterday

    Profile
    Rank: Master

Hall Of Fame