15,698 Topics

Member Avatar for
Member Avatar for tarugupta.92

Hi i have a page say test.jsp It has some href links which redirect to the same page with some unique attributes depending on the link Now depending on the link clicked the page will be reloaded(as it redirects to itself) with new data. Now i want to take an …

Member Avatar for subramanya.vl
0
824
Member Avatar for FALL3N

I could probably/def read a text file with javascript by embedding some ruby in there but I want to know how to do it with javascript. My code follows: [CODE] <HTML> <HEAD> <TITLE>"Text File"</TITLE> <SCRIPT LANGUAGE = JAVASCRIPT> function handleFile() { var myFile = document.getElementById('txtF') var fileContents = System.IO.File.ReadAllLines(myFile); document.form1.textfield.value=fileContents; …

Member Avatar for L0st
0
18K
Member Avatar for Vijaysurya

Hai everybody, i have following error. user click dialogbox ok button.the above error was comming. what is the problrm in my code var c,pCrop,crop_api,rotate = false; var temp,tempZIndex; var imgCount = 0,imgList = new Array(); var fileSizeOption = ""; $(document).ready(function() { // $('#btnUploadPlanPicture').bind("mouseup", function() $('#btnUploadPlanPicture').mouseup(function() { var id =$('#btnUploadPlanPicture').attr('id'); if(id=='btnUploadPlanPicture') …

Member Avatar for stbuchok
0
3K
Member Avatar for arcticM

i added the draggable functionality to one of my divs using the jquery-ui draggable like in their example here http://jqueryui.com/draggable/ so if the draggable div has text inside it `<div id="draggable" class="ui-widget-content"> Drag me around</div>` how can i enable the option of being able to select the "drag me around" …

Member Avatar for AleMonteiro
1
247
Member Avatar for xNZxAssAssiNx

I was wondering how I make this actually work, without the ternary operator it works perfectly fine. Is it even possible to use a ternary operator in this type of situation? $("#link").html("website" + $("#search").val() + "" + t.games.check==true ? "?games=true" : "?games=false"); Also I will need to do multiple ternary …

Member Avatar for pritaeas
0
70
Member Avatar for hakeemtunde

Hello guys, i've being searching for how is it possible to get value of a form element i.e selection tag that was injected by jquery be access on submitting the form. All the form element value where posted except for the selection element that was injected with jquery. how can …

Member Avatar for hakeemtunde
0
100
Member Avatar for haissam.halawi.9

<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Untitled Document</title> <style type="text/css"> label { display:block; } </style> <script type="text/javascript"> function goTo() { var city = document.forms[0].city.value; var state = document.forms[0].state.value; window.parent.location.href=url+'?city='+city+'&state='+state; return false; } </script> </head> <body> <form action="" method="get" onsubmit="return goTo()"> <label for="city">Enter the city: <input type="text" name="city" id="city"> </label> <label …

Member Avatar for urtrivedi
0
130
Member Avatar for mgn2683

I am a beginner at Jquery, and am trying to implement easy slider onto a website. I have the slider on the page, but nowhere near the correct location. I think the issue is stemming from the fact there are two CSS files, and the screen.css file (which is tied …

Member Avatar for JorgeM
0
79
Member Avatar for imhunk

Hello ! I m an engg. final year student and have been preparing for my final project. I have selected a topic to develop a web OS (Online Desktop) using HTML,JS,PHP. I require ur suggation whether my topic is good.Help me with some suggation and any tutorial or source code …

Member Avatar for diafol
-1
228
Member Avatar for gahhon

protected void btnOkay_Click(object sender, EventArgs e) { Boolean blBill = checkBill(); if (blBill == true) { SqlCommand cmdRegistrationID = new SqlCommand("SELECT RegistrationID FROM Registration WHERE RegistrationID = @id", conOOC); cmdRegistrationID.Parameters.AddWithValue("@id", txtRegistrationID.Text); conOOC.Open(); SqlDataReader dtrRegistrationID = cmdRegistrationID.ExecuteReader(); if (dtrRegistrationID.HasRows) { while (dtrRegistrationID.Read()) { Server.Transfer("Make Payment.aspx", true); } } else { Response.Write("<script>alert('Record …

Member Avatar for JorgeM
0
130
Member Avatar for efth

I have it set up so that onclick (on a picure) calls the following function: function nxtimg(country){ document.getElementById("imgcont").src="images",country,"/",imgs[i],".jpg"; i++; } When I click on the image however, accorfing to firebug, the src of the image is; "images". It should have been changed to something like: "images/a/flag". Where did I mess …

Member Avatar for theHop
0
263
Member Avatar for Rizi004

Hi I want to give a download button in my web page and when any one click on download button the image download to their computer. How i can do this please tell me? currently i m doing <a href='images/3.png'>Download</a> it open the image in new tab but i want …

Member Avatar for JorgeM
0
300
Member Avatar for AndreRet

I have a function as below in javascript that gets all the values from different inputs/selects. It must then build up a string that will be passed to a textarea. This was working fine last night when I tested. I then tweaked something, not sure what I did and of …

Member Avatar for AndreRet
0
168
Member Avatar for ello

The code below simply shows and hides a div (content) when you click on the heading (heading). <script type="text/javascript"> jQuery(document).ready(function() { jQuery(".content").hide(); //toggle the componenet with class msg_body jQuery(".heading").click(function() { jQuery(this).next(".content").slideToggle(0); }); }); </script> Demo - http://www.designgala.com/demos/collapse-expand-jquery.html By default, the content is always hidden - Is there any way to …

Member Avatar for ello
0
135
Member Avatar for don.davis.773

so I have written a acript that logs into google calendar and pulls the next weeks events and stores them in variables. I am stuck at how to get these variables and put them into a html page does anyone have any ideas? I am running the script once a …

Member Avatar for Gribouillis
0
205
Member Avatar for solomon_13000

I have a file with the name foo.htm inside a folder abc. I am invoking the below script from another html page known as query.html in the folder abc. $.ajax({ url: '/foo.htm', method: 'GET', complete: function(a,b){ alert('complete-2'); }, success: function(a){ alert('good-2'); }, error: function(a,b){ alert('problem-2'); }, }); However, I am …

Member Avatar for Airshow
0
1K
Member Avatar for wackyal

On index.php, change the functionality of your update button's click event so that: 1. when the user clicks on update button it "changes comment text to a textbox with the same value". This requires you to write a javascript to first hide your <div id="comment_1">the first comment</div> and then dynamically …

Member Avatar for diafol
0
344
Member Avatar for Sisil

m looking for a Javascript function or similar which will automatically load a different stylesheet randomly each time a page is visited. I have found several which work on user selection, or on browser size. My Javscript coding isn't up to adapting them sad If anyone knows of an example, …

Member Avatar for Taywin
-1
409
Member Avatar for Farhad.idrees

hi Guys...i have two jquery functions.first one is showing data in grid and we can also update data in grid.. 2nd one is filtering data like if we want to see data of 'farhad' so it will bring data according to 'farhad'; i want to merge both functions in one …

Member Avatar for Airshow
0
302
Member Avatar for VenusCrystal

Hi, I have a site built in dreamweaver. I am using library files to design navigation bar for every page. I have menu, sub menu and sub sub menu in that navigation part. All menu items are <a href> tags. I need a way to keep track of menus which …

Member Avatar for JorgeM
0
128
Member Avatar for AndreRet

![justmywheels1](/attachments/large/1/justmywheels1.png "justmywheels1") # Please see attached image # a User will click on an img which in return will either show - -if unchecked is visible, checked image will be visible (javascript used for this) -and vice versa. I have no idea how to achieve the following - If a …

Member Avatar for AndreRet
0
196
Member Avatar for Tko_1

hello again, Im tring to stop this redirect with a button. this is the orginal script. <script language="JavaScript" type="text/javascript"> var count =16 var redirect="example.php" function countDown(){ if (count <=0){ window.location = redirect; }else{ count--; document.getElementById("timer").innerHTML = ""+count+" seconds." setTimeout("countDown()", 3000) } } </script> Browser refresh in <span id="timer"> <script> countDown(); …

Member Avatar for Tko_1
0
538
Member Avatar for rotten69

Hey folks, I am running into a really good function in JavaScript but I wonder how it is used. I've done a bit of search on how it is used and have seen examples but none of the examples seem to work for me anyway. it throws an error at …

Member Avatar for rotten69
0
227
Member Avatar for tokick4

I have a question of dynamic elements in php loaded through mysql. The PHP code is as follow <?php $query = "SELECT * FROM `fee_table` WHERE fee_class_id = 6 "; $result = mysql_query($query) or die(mysql_error()); // Print out the contents of the entry echo "<table width='400'>"; echo "<th width='10' scope='col'>Qty</th>"; …

Member Avatar for tokick4
0
186
Member Avatar for McLaren

To register at http://www.box2d.org/forum/index.php there are difficult and annoying questions. But I solved one of them which was easiest for me, so I share in case someone else will want to register there: A ball of mass 3 kilograms begins falling with gravity of 10 meters per second squared. How …

Member Avatar for McLaren
0
124
Member Avatar for riahc3

Hello I want to do a indexOf but of certain special characters such as variable.indexOf(''')==-1) variable.indexOf('/')==-1) variable.indexOf('')==-1) variable.indexOf('"')==-1) etc, etc. How can I do this?

Member Avatar for pritaeas
0
73
Member Avatar for thing2

Hello everyone. I am building an Android app using Dreamweaver with the Jquery Framework and I am having trouble viewing source code of a given URL using javascript. I want the user to be able to type a url into a textfield, and then hit a button and have it …

Member Avatar for radow
0
102
Member Avatar for asrsmunna

Hi..! i have 2 files in a folder "form.php" "thankyou.php" after filling the form, user ir redirected to thankyou, but, if we click browser's BackTo button, the filled details are remaining in the fields. How to reset the form when clicking "Back". This code i tried.... but no use <!-- …

Member Avatar for spectra
0
120
Member Avatar for Farhad.idrees

guys i have for buttons in html form...edit, back, submit, reset but the problem is how to go back to previous page....i m performing this using onlick event but not working... my code is.... <form method="post" action="" enctype="" name="Qform" onsubmit="return validateForm(this); "> <div class="centerform" > <div id="divbox"> <label id="label">Name : …

Member Avatar for Farhad.idrees
0
156
Member Avatar for suavedesign

I am having a problem with my JS slideshow- it works perfectly in IE. I checked firefox, and for some reason, I just see the first image of the slide. Even if I manually press the next arrow, nothing happens. Here's a link to my site: [http://www.wordpress.suavedesign.net](http://www.wordpress.suavedesign.net) I'm not sure …

Member Avatar for pritaeas
0
129

The End.