search for: getelementbyid

Displaying 20 results from an estimated 161 matches for "getelementbyid".

2019 Aug 07
0
samba-tool PTR with /16 network
...st go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba -- function jsUcfirst(string) { string = string.toLowerCase(); return string.charAt(0).toUpperCase() + string.slice(1); } function change(id,type) { var idorg = id*10; if (idorg == 20) { document.getElementById(id ).innerHTML = (document.getElementById(idorg ).value).toUpperCase(); } else if (idorg == 10) { document.getElementById(id ).innerHTML = jsUcfirst(document.getElementById(idorg ).value) ; } else if (idorg == 60) { document.getElementById(id ).innerHTML = "Fax : " + document.getElementBy...
2010 Nov 08
1
API Google MAPS
...var latlng = new google.maps.LatLng(28.142722, -15.448609); //Creatin a MapOptions object with tthe required properties var myOptions = { zoom: 3, center: latlng, mapTypeId: google.maps.MapTypeId.ROADMAP }; //Creating the map var map = new google.maps.Map(document.getElementById("mapilla"), myOptions); // add the marker itself var marker = new google.maps.Marker({ position: latlng, map: map, draggable: true }); } function add_marker(map, lat, lng) { var point = new google.maps.LatLng(parseFloat(lat),parseFloat(lng)); var myO...
2009 Jun 06
0
loglikelihood and AIC
...m_date_time_format" : "{d}/{M}/{yy} {h}:{mm} {A}"};if (YAHOO.mc.page.generic) {YAHOO.mc.page.generic.initComposeMenu();}YAHOO.mc.page.TriggerULT=true;YAHOO.util.Event.onDOMReady(function () {sessionMgr.initSession();sessionMgr.loadFromBookmarks();});var adPrefetch = true;if (document.getElementById("JSMailOptionsLink")) {document.getElementById("JSMailOptionsLink").href = optionObj["JSMailOptionsLink"];}YAHOO.util.Event.on(["searchTheWebtop", "searchTheWebbottom"], "submit", webSearchHandle);if (document.getElementById("chk_pop_...
2006 Feb 08
5
debugging 500 Internal Server Error when dispatch.fcgi run?
I''m trying to get my Ruby on Rails application to work under Apache. It works fine when run as WEBrick ("ruby script/server"). As suggested in http://www.ocssolutions.com/support/ruby/troubleshooting-ruby-on-rails.php , I tried running dispatch.fcgi on the command line. When I run it, no matter where I run it, it outputs: 500 Internal Server Error Both the #! (shebang)
2006 Feb 07
1
Help needed with conflicting EventObserver
...this would be greatly appreciated! Here''s my code: <script src="/js/prototype.js" type="text/javascript"></script> <script type="text/javascript"> window.onload = function () { setMake(); } function setMake() { var make = document.getElementById("make"); var makere = /ford/; // Set the make for (var i=make.options.length-1; i>=0; i--) { var m = make.options[i].value; if ( makere.test(m) ) { make.selectedIndex = i; var modelAjax = new Ajax.Updater({ success: &...
2006 Jan 06
3
image replacement (new Effect.*****) problem
...ot;this.className = ''product_hover''", "onMouseOut" => "this.className = ''small_product''", "onClick" => "new Effect.Shake(this); new Effect.Fade(''large_image''); document.getElementById(''large_image'').style.display = ''inline''; document.getElementById(''large_image'').src = this.src; new Effect.Appear(''large_image'');"} %> -- Posted via http://www.ruby-forum.com/.
2006 Apr 12
11
innerHTML and scripts not running
...f(xmlHttp.responseIsFailure()) { var sts = xmlHttp.transport.status ? xmlHttp. transport.status : "undefined"; $("debug_msg").value= "XMlHttpRequest returned response status "+sts; document.getElementById("debug_msg").innerHTML= "HTTP response and server information; "+ "response status="+ xmlHttp.transport.status; } else { document.getElementById("display_area").innerHTML =xmlHttp.tra...
2019 Aug 07
8
samba-tool PTR with /16 network
Yes, offcourse, the 172.19 is a "bad" example. I suggest we use the official RFC 1918 zones. 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 And for example 192.168.0.0/24 as extra, or people get confused. ;-) Greetz, Louis > -----Oorspronkelijk bericht----- > Van: samba [mailto:samba-bounces at lists.samba.org] Namens > Rowland penny via samba > Verzonden: woensdag 7
2009 Jul 24
6
Routes from raw js (using XMLHttpRequest)
...t because in firefox, the error concole is clean. Can someone tell me from my js below where I am posting, or why my controller method isnt getting the post? Thanks, Janna B //this function is getting called by an onchange in the associates select function assocchange(therow){ var s = document.getElementById("assoc"+therow).value; var url = "/channels/assocboxchange/" var parameters = "assoc=" + escape(encodeURI(s)) + "&id=" + therow; formid="assoc" + therow; makePOSTRequest(url, parameters, formid) } function makePOSTRequest(url, paramet...
2010 Jan 20
5
disable submit_tag after click
This code disables the ''Save'' button once clicked, but doesn''t seem to send the form data. <%= submit_tag ''Save'', :class => ''submit'', :onclick => "document.getElementById(''save_button'').disabled=true;", :id => "save_button" %> This code sends the form data and a record is created, but isn''t disabled once clicked. A user can click this many times, creating a new record each time. <%= submit_tag ''Save'&...
2008 Mar 27
3
Help with authentication errors
...in Chapter2Controller#myresponse </h1> <pre>ActionController::InvalidAuthenticityToken</pre> <p><code>RAILS_ROOT: C:/ruby/myprojects/ajaxonrails</code></p> <div id="traces"> <a href="#" onclick="document.getElementById(''Framework-Trace'').style.display=''none'';document.getElementById (''Full-Trace'').style.display=''none'';document.getElementById(''Application-Trace'').style.display=''block'' ;; return false;"...
2008 Apr 29
6
Intercepting an onClick file download
Hi, I''m having some trouble downloading a .csv file from a particular website. The file isn''t part of a url, you need to click on a link in order to get the file sent. I don''t know how to get mechanize to correctly identify that. Here is the link to the file I''m trying to retrieve: <td style="vertical-align: bottom; text-align: center;">
2011 Mar 19
2
I get an error message
...;&":"";urlParams+="timerwait="+adContext.timerwait;} if((typeof(adContext.url)!="undefined")&&adContext.url){urlParams+=(urlParams)?"&":"";urlParams+="adurl="+urlescape(adContext.url);url="ad.html?"+urlParams;getElementById("_playLink").href= "javascript:AM_Go_Ad_Page('"+url+"');";} ajax.abort();} catch(e){} } function onload_actions(){window.focus();setTitle();setProductImageHint();setLanguageComboValue();if(param.price){getElementById("_pricetab").style.visibility='...
2008 Dec 13
2
What is "The Rails Way" to do this?
...partalternate.0.altpartnumber'' "; html += "joinkey=''partid=<?=$partid?>'' "; html += "attrib=''unique'' size=''20'' "; html += "onChange=''cellTripolar(this)''>\n"; document.getElementById("partnumber").innerHTML += html; html = "<input style=''background-color:#FFFFCC'' "; html += "type=''text'' id=''rowcol'' name=''partalternate.0.altmanufacturer'' "; html += "joinkey='&...
2009 May 07
12
is there simpler way to export html within xml
...orting a lot of html code within xml, our current method works but it''s very messy - far from perfect, is there a better way to do this. an example of our controller code is html = html + "&lt;img src=&quot;/icon/icon_email.gif&quot; onclick=&quot;javascript:document.getElementById(&#39;detail&#39;).style.display=&#39;none&#39;; document.getElementById(&#39;mailform&#39;).style.display=&#39;inline&#39;; &quot;/&gt;\n" as you can see we''re using the &lt; etc to generate the html required, so the end result is something...
2009 Feb 26
8
beginners question
...good, is it? thanks in advance, Ruud =========================== edit.html.erb (hopefully the tags are preserved in the mail) <h1>Editing item</h1> <script type=''text/javascript''> function date_clicked (noDate) { var doc = window.content.document; doc.getElementById( ''dagid'').disabled = noDate; doc.getElementById( ''mid'').disabled = noDate; doc.getElementById( ''jid'').disabled = noDate; } </script> <% form_for(@item) do |f| %> <%= f.error_messages %> <table> <tr>...
2010 May 05
6
form remote tag :before=> function problem
...function to validate the fields in the form, but the problem is that it does not update the div test_categories, instead opens as a separate page like regular form. If I remove this :before=> all works fine. the function hello is below and just a normal js function hello() { if(document.getElementById("card_no").value=="") { alert("Card not captured, please try again") document.getElementById("card_no").focus() return false; } return true; } Any Ideas? -- Posted via http://www.ruby-forum.com/. -- You received this messa...
2008 Feb 13
8
comparing ajax.updater div in js
...function Check(){ new Ajax.Updater(''testdiv'',''randy.php?ajax=1'', {method:''post'',parameters:''somevar=''+somevalue,evalScripts:false}); //wha la, testdiv now displays "SomeString". but wait! crap!..... test = document.getElementById(''testdiv'').value; if (test == "SomeString"){ document.getElementById(''testdiv'').innerHTML=test; return true; } } Thanks for any advice. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the...
2007 Jan 29
6
RJS problem
Hi, I''m implementing a "digg-like" page, that once you digg. The score for each item will dynamically reflect your current action +1 . I am not sure what''s In the controller I have an action responsible for increase of the score.It has a corresponding rjs in view. -------------------------------------------------------------------------------- def arouse
2007 Dec 06
11
Weird Prototype behavior
In this code: <html> <head> <title>PT test</title> <script type=''text/javascript'' src=''/js/prototype/1.6.0/ prototype.js''></script> <script type=''text/javascript''> //<![CDATA[ Event.observe(window, ''load'', function () { alert($(''login_username'')); }); //]]>