719 Posted Topics
Re: Hi, you're adding the event handler to ".close-pw" before it's been inserted, that's why it doesn't trigger. Should work with this: $("#paywall-img").on("click", ".close-pw", function(){ alert('Close #paywall-img'); $(this).parent().hide(); }); Or, another way it's to add the handler at the creating of the object: $('<button class="button close-pw"><span>Cancel</span></button>') .click(function() { alert("Closing"); $(this).parent().hide(); }) … | |
Re: There's probably a more elegant way, but I use this one: /// <summary> /// Finds parent master page by name /// </summary> /// <param name="masterPage">MasterPage to search on</param> /// <param name="name">Name to find</param> /// <returns>MasterPage</returns> public static MasterPage getMasterPage ( System.Web.UI.MasterPage masterPage, string name ) { if ( masterPage == … | |
Re: I don't think this belong in Web Development, you should get much faster help in Microsoft Windows or maybe Software Development | |
Re: Try document.getElementById('draggable').style.left = y + "px"; But have in mid that if your element is not absolut positioned, top and left will only act like margins. Also, if you javascript is working, test only the styles and see if it changes, test step by step, like: <div id="draggable" class="ui-icon-image" style="top: … | |
Re: You are missing the closing '}' for codeAdress(), so it doesn't exist. Didn't you see this in the console? | |
Re: Windows 7 has wizard install with step by step instructions. Have you tried booting from the CD and following the steps? | |
Re: jnneson, welcome to this loving, createfull and bizarre world of programming. Based on what you said, I'd suggest you chosse what do you want to create first, and start learning that. Examples... if you want to build your first web page, start with HTML and CSS, then JavaScript. If you … | |
Re: sandy4a0, take a look at strings syntax: http://www.quirksmode.org/js/strings.html | |
Re: Did you try like this? $(document).ready(function(){ $("#del_event").live("click", function(){ var events = $("input[name=event_id]").val(); alert(events); if(confirm("Are you sure ?")) { $.ajax ({ type = "post", url = "EMS/DelEvent.php", data = events, success: function(){ alert("event deleted!"); } }); return false; } }); }); ![]() | |
Re: I tried to started an year ago but I got too busy with my job and life choices. I don't think I can help much at the time, I'm just coming back to the forum. | |
Re: Hi, first of all, put some description at your post, don't just drop the code. So the problem seems to be that you can execute the stored procedure, right? Do you have permission to do so with the account your are logged in? Who is the owner of the SP? … | |
Re: The App creates the DB and the tables, but it drops only the tables? If so, on the second time isn't it trying to create an DB that already exists? And when the second project is created the first project tables are dropped, so the first project isn't available anymore? … | |
Re: Try something like this... if ( window.location.toString().indexOf("myPage.html") > -1 ) { window.onbeforeunload... } | |
Re: Where do you call the initialize function? The error is telling you that you are trying to set the header after you started the output. | |
Re: I was not able to undertand what you area trying to do... but let me explain to you what your code is doing... // Every TR inside .contact-names will have and double click event listener $(".contact-names tr").live("dblclick", function(){ // Name will be any content displayed inside the row var name … | |
Re: Like this http://www.codeproject.com/Articles/57100/Simple-and-Free-PDF-to-Image-Conversion ? | |
![]() | Re: This page is the same page that show the HTML? If so, all this code is being executed before any user interaction... I suggest that you create an hidden input to know what do to... example: <?php if ( $_POST["formAction"] == "insert" ) { // Insert code goes here } … ![]() |
Re: What backend language are you using? If you were able to show the list in HTML, just use an JQuery UI Theme to make the look and feel better. | |
Re: You can't really make transitions between two pages, but you can give a better impression with something like this. // Hide your main div when leaving the page window.onbeforeunload = function() { $("#myMainDiv").hide('fade'); }; // Shows your man div when loading the page window.onload = function() { $("#myMainDiv").show('slide'); }; | |
Re: That's because you can't make AJAX request to different domains. Take a look at this: http://stackoverflow.com/questions/3506208/jquery-ajax-cross-domain | |
Re: I ain't sure, but I think you can't do it with backup (.bak). What you can do it's generate scripts from the 2008 to the 2005: 1.Right click on the DB -> Tasks -> Generate Scripts 2.Select all the objects 3.Click Advanced 3.1.Change Script for Server Version: SQL Server 2005 … | |
Re: The basic ways are: With jQUery: `$("#buttonID).click();` Only JS: `document.getElementById('buttonID').onclick();` If you want to learn more and do a nice implementation read this article: http://jehiah.cz/a/firing-javascript-events-properly | |
Is anybody developing an Android App for DaniWeb? If nobody is, I'm planning on doing so, and if someone wants to participate, you'll be welcome. If someone is developing, and wants help, I'd like to participate. Cheers. Ps.: I was not sure if I should post this here or in … | |
Re: This is a known bug, to fix add this code inside the On_Init event. [CODE] Response.AddHeader( "p3p", "CP=\"IDC DSP COR ADM DEVi TATi PSA PSD IVAi IVDi CONi HIS OUR IND CNT\"" ); [/CODE] I suggest that you put in on a master page or, as I do: I extend … | |
Re: What error do you get? In IE, open developers tools (F12), go to the Script tab and start debugging. | |
Re: You can't use the same id *item* for all the objects. The method getElementById always returned only the first object with that Id. The <a> object doesn't have an value property. To get the text you need .innerText; Try those changes: $hint=$hint . "<br /><a id='item' href='javascript:void(0)' onClick='add(this)'>" . $g->item(0)->childNodes->item(0)->nodeValue … ![]() | |
Re: I'm not sure, but I think this would work (C#): object[] codeString = {"$('#practices).change();"}; webBrowser1.Document.InvokeScript("eval",codeString); | |
Re: The function showProductPage is fine. Post one example of the *data* content. One thing, you don't need '<\/div>', just '</div>' is fine. | |
Re: I'd suggest one of the two: PHP + MySQL or .NET + SQL Server Both can achieve what you're looking for. | |
Re: I think the easiest way is writing files to disk or on a database and the most "decent" way is using windows services. | |
Re: The best way to find out what you need to change is to use a HTML element inspector. I suggest FireBug for Firefox or developer's tools for IE (I prefer Firebug). I think Chrome and Safari must have something similiar too. In example, using FireBug: 1. Open the page 2. … | |
Re: What's your problem? You didn't explained anything. | |
Re: `on()` is not the same as `live()`. `live()` is used to attach handlers to an selector. If an element is created after the call of `live()` it would have the same handler. `on()` only attach handler to existing elements. If you create an element after the call of `on()`, it … | |
Re: I've never used this effect, but I seached a little bit and came accross this post: http://javascripted.me/javascript-libraries-that-will-help-you-with-parallax-scrolling.html#.UVno2ZbDOSo They show some options to use Parallex effects, take a look. | |
Re: There's a saying here in Brazil that could be translated to something like "Each crazy person has it's own habbits" (Cada louco com sua mania). Let me show you some examples: I don't break line to `{`, but I add space in `( something )`, and I don't it it's … | |
Re: You need to add your logic that will define which option must be selected, then you set it to selected like this: <select name="mySelect"> <option value="1">First Option</option> <option value="2" selected>Second Option</option> </select> | |
Re: I suggest you use jQuery UI to achieve this, it'll be very easy. Take a look in this demo, it's almost what you want: http://jqueryui.com/button/#splitbutton This demo uses 3 jQuery UI feature: Button, Menu and Position. | |
Re: Try using the insert like this: INSERT INTO scores (StudentID,subjectid,classid) VALUES SELECT DISTINCT @studentID, SubjectID, @classid FROM Scores WHERE classid= @classid | |
Re: First of all, that's not a good practice. The best way, in my opnion, would be to have an code behind that uses your class, get the message and set it to the html. But, if you really want to do it... If you just want to write something exatly … | |
Re: I really never had problem with this, but I searched a little bit and this post may help you: http://blog.stevenlevithan.com/archives/javascript-regex-and-unicode | |
Re: You should use css reset as pixelsoul suggest. Also, you should have a good understanding about css box model. In those links you'll find the basics: http://www.w3schools.com/css/css_boxmodel.asp http://css-tricks.com/the-css-box-model/ And here you'll have more info and somethings about compability: http://coding.smashingmagazine.com/2010/06/07/the-principles-of-cross-browser-css-coding/ | |
Re: By associative array you mean object? Even if you recieve an associative array from PHP it'll be transformed into a object. You can just loop one and insert in the other, like this: var obj1 = { 'banana': 'banana', 'apple' : 'apple' }; var obj2 = { 'world': 'world', 'earth': … | |
Re: I'm not sure this will work, but I'd try something like it: SELECT Facility.[Facility Name] FROM Facility LEFT OUTER JOIN Reservation ON ( Facility.FacilityID = [Reservation].FacilityID AND [Check-in time] = '" & Integer.Parse(cboHour.Text) & "' AND [Check-in date] = '" & lstDate.SelectedItem.ToString & "' ) WHERE [Reservation].ReservationID Is NULL AND … | |
Re: Take a look at the this http://msdn.microsoft.com/en-us/library/ms537509(v=vs.85).aspx And this could be usefull as well http://stackoverflow.com/questions/280879/how-can-i-determine-which-version-of-ie-a-user-is-running-in-javascript | |
Re: Hello Reliable, JS is much more dynamic then AS 3, I used to work with AS3 with Flex, but I didn't miss a thing when I got back with JS. There's multiple ways to define an JS function, some of them are: // only functions function myFunc() {}; var myFunc … | |
Re: Try using like this: TempDate = dr.Item("dob").ToString txtDate.Text = TempDate.ToString("yyyy-MM-dd") | |
Re: Your infowindow problem seems to be an CSS problem and also you have an empty div that occupies space. Try removing the empty div and change <h1> to <span> | |
Re: There are lots of tutorials about this, check those out: http://davidwalsh.name/create-image-thumbnail-php http://progtuts.info/178/php-automatically-create-thumbnail-images/ http://webcheatsheet.com/php/create_thumbnail_images.php http://icant.co.uk/articles/phpthumbnails/ | |
Re: Do you have link that we could test this? Maybe an http://jsfiddle.net/ ? Just by looking at your code I coudln't find the problem. |
The End.