15,698 Topics

Member Avatar for
Member Avatar for cjay175

Hey, I was wondering if someone could help me with this. I want to, when an anchor link is clicked, the id of the link is grabbed by jquery then passed to a function. The id is would be the same as the id of the div that is used …

Member Avatar for efadfsfasdf
0
5K
Member Avatar for Bisquick

Is there any way I could make specific text strings "invisible" on my web page? For example, If I were to specify the string "hxxp://nullrefer.com/?", I would need that text to appear invisible on my page everywhere it's mentioned, automatically. So, if the url "hxxp://nullrefer.com/?hxxp://www.Amazon.com" were to be mentioned on …

Member Avatar for dany12
0
229
Member Avatar for aaloo

this is my javascript for validation of a form .It works perfectly <script type="text/javascript"> function validateForm() { var x=document.forms["contacts-form"]["email"].value; var atpos=x.indexOf("@"); var dotpos=x.lastIndexOf("."); if (atpos<1 || dotpos<atpos+2 || dotpos+2>=x.length) { alert("Not a valid e-mail address"); return false; } var x=document.forms["contacts-form"]["name"].value; if (x==null || x==""||x=="Name:") { alert("First name must be filled …

Member Avatar for aaloo
0
185
Member Avatar for rakibtg

a script which will show a page content like video, photos to a user if they share it on Facebook. i mean to watch a video they have to share it first and only then they will able to watch it from web page...can i do it with javascript? like …

Member Avatar for dany12
0
87
Member Avatar for gorleone

Hi guys, I have a maybe simple question, but I'm wonder how they do this: [http://www.blacknegative.com/#!/adisseo/](http://www.blacknegative.com/#!/adisseo/) background image scale perfect in all screen resolution (even 2560x1440 or 800x1280), and the background picture is only ~1000 x 1000 pixels. I make similar effect with <img src=""> and some javascript, but they …

Member Avatar for gorleone
0
186
Member Avatar for MarielaMontaldo

I have another problem that is driving me crazy. I separated sections on my page with normal anchors, but when I click, they take me to the part of the page where the div is, and I want to keep focus on the top part of the page, I mean, …

Member Avatar for jackbauer24
0
116
Member Avatar for chakrapani

When we signout the form How can i disabling back button and, not only disabling back button but also delete history from browser. Suppose i used <script language="javascript" > javascript: window.history.forward(1); </script> to disable back button , its working. when i go to back list and click previous histories it …

Member Avatar for SehswagGxx123
0
12K
Member Avatar for harshm027

Hi, For some reason form submit is not working properly while I am using Ajax. I want the result to be displayed on the same page. I am using Ajax for this, but when I submit the form, only text is being displayed rather than the actual value. This is …

Member Avatar for harshm027
0
199
Member Avatar for mbarandao

Hello: I would like to get confirmation from user, if a particular checkbox on form is not checked, whether they want to submit the form without checking this box. I have written the following, but need help with it --missing something. <script type="text/javascript"> function taxable(){ if (document.processEstimate.tax.checked == 0) { …

Member Avatar for mbarandao
0
176
Member Avatar for divsok

how can i submit a form when the page is loading..my code is here <div id="main_div"> </div> <s:form action="getpagethreads" id="ini"> <sx:submit targets="main_div" value="submit" /> </s:form> actually i don't need to show any buttons in my form...what can i do for that?

0
98
Member Avatar for TonyG_cyprus

Hi, Does anyone know if Bing translator is still available, or has it gone the same way as google, and converted to 'paid'? I'm trying to use jquery translate on a website that I'm building, but despite 3 days of searching I cannot find how to get a Bing Appid …

Member Avatar for TonyG_cyprus
0
120
Member Avatar for patocardo

I cannot find the mistake in the following code function doArray(n){ // test with n > 1000 var str, i, j,arr=[], cnt=0, q=0, re; str = ["one two three","two three four","three four five", "four five one", "five one two"]; for(i=0; i<n; i++){ j = Math.round(Math.random()*(str.length-1)); arr.push(str[j]); } re =/two/g; for(i=0; …

Member Avatar for Airshow
1
131
Member Avatar for harrispc

I have written my first javascript block which functions correctly in IE, however nothing executes in FF or chrome. have I missed something. Also is there a way to stop IE from prompting to run it? TIA Javascript function getCondition() { if (window.XMLHttpRequest) {// code for ie7+, firefox, chrome, opera, …

Member Avatar for jmichae3
0
170
Member Avatar for ettypaldos

I would like to alter the example provided [URL="http://www.w3schools.com/php/php_ajax_database.asp"]here [/URL]so that there is a second dropdown input for 'Male/Female'. I know the example itself does not provide a 'Sex' field in the MySQL db, but let's just pretend it does. Furthermore, assume we have a new in out select for …

Member Avatar for johns1982
0
5K
Member Avatar for softDeveloper

Dear All, Please suppose that I have this line of code, and that my selection range goes from div element with id=1, starting at '2', to div element with id='2', ending at '8'. `<div id='1'>1`2`3</div>456<div id='2'>7`8`9</div>`. I'm using chrome, I would like to get the position of the cursor inside …

Member Avatar for patocardo
0
179
Member Avatar for mbarandao

I'm populating a chained linked dropdown box with the following code: $(document).ready(function() { var data = <?php echo $arr;?>; var id; function getData(passCatID){ var content = ''; var content = '<option name="specify id="specify" style="background: url() right no-repeat; width: 20px">------SPECIFY-----</option>'; var product_desc = ''; var invt = ''; var qty = …

Member Avatar for mbarandao
0
245
Member Avatar for mbarandao

Hi: I was wondering if it is possible for an click() element for jquery to call another document.ready() element from within. Here is what I mean: I have: $('#addrow').click(function(){ $('.item-row:last').after('<tr class="item-row"><td valign="top" align=center style="border-left: 0px solid #cccccc;" width="100%" class="item-name"><div class="delete-wpr"><?php echo $dd2;?><a class="delete" href="javascript:;" title="Remove row">D</a></div></td><td valign="top" align=center ><select id="service_subcat_1" …

Member Avatar for mbarandao
0
134
Member Avatar for emclondon

I'm trying to upload an Image to PHP. The most common method I found out to do this was using FORM/POST; But that doesn't help me for what I am about to do. What I actually am trying to do is upload an image to PHP, the PHP Script will …

Member Avatar for pritaeas
0
688
Member Avatar for rayidi

# How to access $_SESSION in jQuery ? # I'm developing a existing chat using jQuery with PHP. here is the code function createChatBox(chatboxtitle,minimizeChatBox) { if ($("#chatbox_"+chatboxtitle).length > 0) { if ($("#chatbox_"+chatboxtitle).css('display') == 'none') { $("#chatbox_"+chatboxtitle).css('display','block'); restructureChatBoxes(); } $("#chatbox_"+chatboxtitle+" .chatboxtextarea").focus(); return; } $(" <div />" ).attr("id","chatbox_"+chatboxtitle) .addClass("chatbox") .html('<div class="chatboxhead"><div class="chatboxtitle"><a …

Member Avatar for pritaeas
0
221
Member Avatar for Bisquick

The following script adds my affiliate extension to every url on my page. For example, if http://www.Google.com/ is on my page somewhere... Adding this script to the page will automatically change the url to- http://adf.ly/xxxxxx/http://www.Google.com/ - this goes for every url on the page... This script works great if the …

Member Avatar for pritaeas
0
340
Member Avatar for azareth

i have this code where it computes for the time entered by the user. it doesn't have yet the limitations or the conditions regarding the time to be entered . it successfully computes for the time and the hour increases based on the minutes, but the problem is when you …

Member Avatar for TrustyTony
0
277
Member Avatar for devin2203

Hi In my application I have a test for distance using google maps api. As you can see above if the postcode is within range the page is redirected to the menu page. I have created a very simple lightbox using css and the onclick function. I want that div/lightbox …

0
133
Member Avatar for Designer_101

Hi This is either really simple or completely impossible :) I have a table like the following: [CODE] <table> <tr> <td>1</td> <td>2</td> </tr> <tr> <td>7</td> <td>9</td> </tr> <tr> <td><<SUM OF THIS COLUMN (8)>></td> <td><<SUM OF THIS COLUMN(11)>></td> </tr> </table>[/CODE] I hope you understand what it is im asking. This is …

Member Avatar for saqlainraza14
0
44K
Member Avatar for new_developer

I have div. <div>This is text in div1.</div> How do i get the text written in div to variable in javascript ??

Member Avatar for JorgeM
1
154
Member Avatar for Sanchixx

Hello, How can i replace a button by an image? Here is my code: <INPUT TYPE="butt <INPUT TYPE="button" NAME="insert" VALUE="Gras" onClick="this.form.area.value=this.form.area.value.concat('<b>Ajouter votre texte en gras ici</b>');">insert" Thank you, Sanchixx

Member Avatar for memomk
0
144
Member Avatar for Aardwolf

NotiOpened = '0'; if (NotiOpened == '0';) { $("#notification").slideDown("slow"); $('#notification').load('notification.php'); NotiOpened = '1'; } else { $("#notification").slideUp("slow"); NotiOpened = '0'; } what's wrong with it?

Member Avatar for memomk
0
152
Member Avatar for divsok

how to automatically refresh a dynamic web page after 1 second at once(not continually) using javascript ?

Member Avatar for Sanchixx
0
158
Member Avatar for shadiadiph

Does anyone know of a function that can check all or uncheck all checkboxes with one click barring in mind i have multiple forms on one page. function checkAll(formName, status){ for (i = 0; i < formName.length; i++) formName[i].checked = status.checked? true:false } I have tried the above it works …

Member Avatar for shadiadiph
0
125
Member Avatar for .NETLearner

Hi, Im trying to save a change value to the database from an autocomplete textbox. I have 2 scenarios 1) Add a new value without selecting any option from the autocomplete list. I want the oblur or any similar method of the textbox to hit whenit loses focus to call …

0
66
Member Avatar for magikman

I have a table of data with hostnames in column two of my table and other data such as location, type, etc. in the other columns. I would like to have a button that will filter any hostname that ends with an H. So far I have the code below …

Member Avatar for pritaeas
0
96

The End.