14,054 Topics

Member Avatar for
Member Avatar for pucivogel

can anyone help me with this error? INVALID_STATE_ERR: DOM Exception 11 on this line hr.setRequestHeader("Content-type","application/x-www-form-urlencoded");

Member Avatar for gon1387
0
159
Member Avatar for chr.s

Hello, A website I'm working on requires that the Prototype framework is included, but I'm also using jQuery for some custom behaviours. I'm using the jQuery [maximage](http://www.aaronvanderzwan.com/maximage/1/) slider plugin almost successfully; the only issue is that it seems to conflict with prototype - yes, even with jQuery's noconflict used - …

Member Avatar for chr.s
0
277
Member Avatar for DamzWildfire

hey i want to add this code to a jquery file that i have to display the autosuggestion results.when its in the body of my other page when the result is recieved it pushes the page down when clicked it goes back up i dont want that. any suggestion? <div …

Member Avatar for DamzWildfire
0
391
Member Avatar for pucivogel

I have this part of code <?php $showmonth=$_POST['showmonth']; $showyear=$_POST['showyear']; $showmonth=preg_replace('#[^0-9]#i','',$showmonth); $showyear=preg_replace('#[^0-9]#i','',$showyear); $day_count=cal_days_in_month(CAL_GREGORIAN,$showmonth,$showyear); $pre_days=date('w',mktime(0,0,0,$showmonth,1,$showyear)); $post_days=(6-(date('w',mktime(0,0,0,$showmonth,$day_count,$showyear)))); but i get errors like undefined index showyear,and errors on cal_days_in_month parameter 3 expected to be long, and also mktime parameter 6 expected to be long all due to the undefined index, how do i fix …

Member Avatar for riahc3
0
162
Member Avatar for pucivogel

can anyone show me how to upload a binary file using Ajax (and php of course) I mean the html and js ?

Member Avatar for stbuchok
0
3K
Member Avatar for pucivogel

I'm pretty new to AJAX so this may look like simple questions but..., so i want my file to be stored in a table in a db i have on my localhost, i'm using iframe <iframe id="upload_target" name="upload_target" src="#" style="width:0;height:0;border:0px solid #fff;"></iframe> what source do i provide, what about the …

Member Avatar for LastMitch
0
180
Member Avatar for jonsan32

I have a site for youth basketball, where parents can list their kid to get them onto a team. The listings that get replied to by teams needing players are deleted, but some listing remain on there for months or years. To combat the potential confusion of which grade a …

Member Avatar for EvolutionFallen
0
223
Member Avatar for Farhad.idrees

Hi Friends.. i have one form where combobox is include... i want to use popup form with respect to selected combo box values using jquery function.... i have this code for combo box.. <label id="label">First Schedule </label> <select name="cmbFS" id="cbmFSId" style="width:205px;"> <option value="">---SELECT---</option> <option value="FSchedule" >Second Shedule</option> <option value="Reject">Reject</option> </select> …

Member Avatar for Farhad.idrees
0
213
Member Avatar for mano7859

Hi :) Sorry to be boring but I have a problem to display and hide some div. I'm explaining. I have this html code: <div id="subMain"> <div id="archivesResult_Content"> <div id="archivesResult_title"> <div class="box"> <div class="date"></div> <div class="categorie" cat="14"> <div class="categorie" cat="13"> <div class="categorie" cat="16"> <div class="categorie" cat="17"> </div> <div class="box"> <div …

Member Avatar for mano7859
0
239
Member Avatar for sobias

Hi, A very simple question I'd like to ask, why intializing a var outside a function, it cannot be used in that function? exmaple: <script type="text/javascript" > var myvariable = document.getElementById("someID"); function someMethod(){ //some stuff here, and I cannot use myvariable inside here why? } </script>

Member Avatar for sobias
0
178
Member Avatar for Octet

Hello Daniweb, I'm attempting to build an online service, aimed at mobile devices that have GPS or GPS like capabilities. The service would take a users location, and show them locations nearby of interest along with some information, such as a historic landmark and some facts or a restaurant with …

Member Avatar for Octet
0
946
Member Avatar for DamzWildfire

hey i want to encode my website url as a form of security but i have no idea how to go about doing so and help?

Member Avatar for pritaeas
0
126
Member Avatar for pucivogel

I want to check for duplicates when inserting a new contact in my database, then showing a msg that the contact is already in the db. this is what i've done: function isDuplicate(names,phone,email,adresa){ var isduplicate=false; for(var i=0;i<addresslist.length; i++){ if(addresslist[i].names.toLowerCase()==names.toLowerCase() && addresslist[i].phone.toLowerCase()==phone.toLowerCase()&& addresslist[i].email.toLowerCase()==email.toLowerCase()&& addresslist[i].adresa.toLowerCase()==adresa.toLowerCase() ){ isduplicate=true; } } return isduplicate; } …

Member Avatar for stbuchok
0
185
Member Avatar for Ryujin

We list our daily opening/closing hours on a Google Calendar as Events. After some struggles with the Javascript API, we are *almost* able to extract the hours (events) for today and for tomorrow to embed elsewhere on the site -- but at 7pm local time (EST in the US) it …

Member Avatar for LastMitch
0
248
Member Avatar for Rizi004

Hi there, I m using jquery ajax function to get the data from server and i m getting the data in associative array on success, but now i want to convert that associative array in javascript, how i can convert PHP associative array in javascript array. Waiting for your quick …

Member Avatar for Rizi004
0
661
Member Avatar for numele

I have searched and have not found exactly what I need. I have a webpage with an iframe on the same domain. The function of the webpage is a form to select network elements and input commands to run on the devices. The real time output with the output is …

Member Avatar for LastMitch
0
180
Member Avatar for methuselah90

Is it possible to link jQuery menu to tabs? For example if the user selects "By Filter" in the menu below I want it to open up the Search By Filters tab. How can I achieve this? JS $("#menu").menu(); $("#search").tabs(); HTML <ul id="menu" style="border: 0px; background:none"> <li><a id="2" style="cursor: pointer">Search</a> …

Member Avatar for LastMitch
0
191
Member Avatar for ms061210

Hello, i'm kinda starting to feel out of my mind now. I am creating a simple web game. I am now in the process of putting some php codes here in game to have scores.My problem is that, My game's top score is the person who played the game very …

Member Avatar for ms061210
0
263
Member Avatar for fheppell

I need to have a script that warns users of leaving without saving changes $(document).ready(function () { $('input').change(function () { window.onbeforeunload = function () { return "You still have unsaved changes!" }; }); }); I found this code, but it goes off when I click the submit button, which is …

Member Avatar for AleMonteiro
0
107
Member Avatar for livlikestar.jame

Problem : String : Hello World Output : H occured 1 times e occured 1 times l occured 3 times o occured 2 times W occured 1 times r occured 1 times d occured 1 times How to do it in Javascript...

Member Avatar for AleMonteiro
0
134
Member Avatar for oishi

I am trying to load php file with jquery into div. The php file contains pagination. However, when i tried it, it seems that, the jquery is not working. But, when I access it in website directly, its working. Do you have any idea how can I load the php …

Member Avatar for oishi
0
258
Member Avatar for yaragalla_mural

I am interested to know how styles work in textarea. when i am posting a question on this site, I type my text in the text area and i am adding styles to it like making selected text bold and also displaying the same on the html page. how does …

Member Avatar for LastMitch
0
113
Member Avatar for tomparker

This may be a little 'outside the box' as far as mega menu's go, but I'm trying to do a 'flyout' or submenu off of a mega. Take a look at http://morningstartv.com, and hover over 'Channels'. When 'Sunday Services' is hovered over, I want a menu to appear to the …

Member Avatar for tomparker
0
279
Member Avatar for yaragalla_mural

Hi i am working with an web application. in my webapp on the browser i am intiating an ajax call to update part of the page. I get the response as html from the server and i will insert the complete response into the div which displays it. I got …

Member Avatar for yaragalla_mural
0
322
Member Avatar for mano7859

Hi :) I don' know how to hide some div with special class. This is my html code: <div id="subMain"> <div id="archivesResult_Content"> <div id="box"> <div id="categorie" cat="2"> ... </div> </div> <div id="box"> <div id="categorie" cat="14"> ... </div> <div id="categorie" cat="5"> ... </div> <div id="categorie" cat="14"> ... </div> </div> <div id="box"> …

Member Avatar for AleMonteiro
0
285
Member Avatar for vinaysrk

`Inline Code Example Here`i have a page defalt.aspx <body> <div id="content"></div> </body> and i have genereated dynamic div through jquery reference to id "content" like #(document).ready(function(){ var a=$("#content"); $(a).append("<div class="scrollbar"><%--some content here-----%></div>") }); this above jquery work fine and seen in inside the "content" when i run the default.aspx but …

Member Avatar for menakshi
0
95
Member Avatar for pucivogel

I have this part of code, ajax will call a function saveContact with parameters name, phone, email, address, is this code ok? $.ajax({ url: 'addressbook.php', data: 'action=saveContact()','&name='+name+'&phone='+phone+'&email='+email+'&adresa='+adresa; dataType: 'json', type: 'post'

Member Avatar for AleMonteiro
0
2K
Member Avatar for kitschkath

Hi there~ I am kinda coding a verrry simple information system which uses Javascript. I am not familiar with JS and I only know the basics, but maybe what I'll ask is a veeery simple one but oh well, should I be asking if I found a solution after searching …

Member Avatar for urtrivedi
0
223
Member Avatar for yaragalla_mural

i have to display a combo box with some dynamic values that comes from the database when user checked a checkbox on the currently being viewed html page. I am getting dynamic values from the webserver as json or xml. Now i have take the values from the json or …

Member Avatar for riahc3
0
108
Member Avatar for Violet_82

hi chaps, I am having some trouble decoding this regex in a javascript (wasn't entirely sure whether javascript was the right place to post this since it has more to do with regex). I am very new to it - this is the first time I look into that - …

Member Avatar for Violet_82
0
206

The End.