Main Topics
Browse All Topics <a href="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...
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...
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...
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...
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#Effectiv
{
$("label#EffectiveCostDate
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...
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=
Is this possible? How?
Building on this question:
http://www.experts-exchang
Visit this page and you will see that Google says the driving distance is 237 miles...
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...
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...
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...
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...
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',{toggl
Can anyone offer any advice on a solution please?
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...
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...
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
onmouseover="this.style.ba
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 ?
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("N
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...
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,...
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),...
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.
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...
<style type="text/css">
input {
readonly:true;
}
</style>
how to put readonly in css?
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"...
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...
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...
Hello, I have a small problem with the way document.innerHTML.replace
Put this in the browser window and press enter..
javascript:document.body.i
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....
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.startDat
alert ("Start...
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...
Quick question about my radio buttons and java script...
This is the code I have ->
function radio()
{
if(document.form1.radio.ch
{
document.form1.radio.check
}
else
{
document.form1.radio.check
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...
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...
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...
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() {
...
the following code works in ie + fox
<img src = "images/p1.jpg" id="myimage"
onclick = "myimages.src='images/p2.j
what i need is that what ever image it is, it will just go to the next image #
example:
images/p1.jpg ...
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,featu
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...
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...
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...
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
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...
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...
I have a javascript function
function copyToClipboard(text) {
if (window.clipboardData) window.clipboardData.setDa
else if (window.netscape) {
user_pref("signed.applets.
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...
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...
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...
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...
My MP4 file is not playing in IE9 when using VideoJS on my HTML5 website:
http://www.colorshoutconce
It seems like it wants to play (I see the Video JS video controls, and the "autostart" parameter appears to be being triggered) .....
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...
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...
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!
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('Save
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.clos
...
Hi,
I want to run a JsSocket on my local machine (localhost), i donwload JsSocket from http://code.google.com/p/j
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:...
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")=="U
and
$(this)).attr("value")=="C
a basic if then statement.
Thanks
...
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
AFAIK, to retrieve the selected value for <SELECT> in a single line javascript, I have the following code:
this.form.areaID.options[t
If I were wanted to do the same, retrive the selected value for <RADIO>...
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?
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...
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?
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...
Hello ext.js experts.
I have posted this same question on an ext.js forum located here:
http://extjs.com/forum/sho
However, here I have attached a Word document which has screen shots which are not available...
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...
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...
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?
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...
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...
I am trying to validate a field for containing only Letters, Numbers, underscore and hypen.
It has some issues. Pl help.
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?
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...
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...
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...
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...
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...
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...
The code below is an ASP and AJAX it works fine with this code in Javascript "(xmlHttp.open("GET",url,t
but when I change it to "xmlHttp.open("POST",url,t
What am I doing wrong?
Thanks.
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...
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...
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.
...
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
how do...
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...
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...
a click on the regular button (html line 1) works;
a click on the image button (html line 2) DOES NOT work.
Anyone?
leakim971
511,289
Sage
2,168 points yesterday
Profilemplungjan
291,279
Guru
2,800 points yesterday
Profilenap0leon
195,491
Guru
0 points yesterday
ProfileProculopsis
182,948
Guru
0 points yesterday
ProfileCOBOLdinosaur
157,309
Guru
0 points yesterday
Profilechaituu
130,684
Master
0 points yesterday
ProfileRay_Paseur
130,217
Master
330 points yesterday
ProfiletommyBoy
125,345
Master
0 points yesterday
ProfileStingRaY
114,318
Master
0 points yesterday
ProfileDaveBaldwin
80,081
Master
336 points yesterday
Profileansudhindra
79,054
Master
2,000 points yesterday
ProfileChrisStanyon
62,768
Master
800 points yesterday
Profilehielo
61,266
Master
0 points yesterday
ProfileHainKurt
59,030
Master
0 points yesterday
ProfileBuggyCoder
54,739
Master
0 points yesterday
Profilemroonal
54,339
Master
10 points yesterday
Profiletagit
54,093
Master
1,600 points yesterday
Profilegurvinder372
52,824
Master
10 points yesterday
Profilebasicinstinct
52,586
Master
0 points yesterday
ProfileJonNorman
45,158
2,200 points yesterday
ProfileLalit-Chandra
44,420
0 points yesterday
Profilexmediaman
36,450
3,800 points yesterday
Profilekozaiwaniec
33,100
0 points yesterday
ProfileKravimir
32,700
0 points yesterday
Profiledesignatedinitializer
32,300
0 points yesterday
Profile