719 Posted Topics

Member Avatar for jamojo

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(); }) …

Member Avatar for AleMonteiro
0
257
Member Avatar for xzero1

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 == …

Member Avatar for AleMonteiro
0
136
Member Avatar for vbala2k5

I don't think this belong in Web Development, you should get much faster help in Microsoft Windows or maybe Software Development

Member Avatar for almostbob
0
92
Member Avatar for weeraa

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: …

Member Avatar for AleMonteiro
0
287
Member Avatar for munchlaxxx

You are missing the closing '}' for codeAdress(), so it doesn't exist. Didn't you see this in the console?

Member Avatar for AleMonteiro
0
1K
Member Avatar for faridreza99

Windows 7 has wizard install with step by step instructions. Have you tried booting from the CD and following the steps?

Member Avatar for JorgeM
-1
88
Member Avatar for jnneson

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 …

Member Avatar for AleMonteiro
0
160
Member Avatar for sandy4a0

sandy4a0, take a look at strings syntax: http://www.quirksmode.org/js/strings.html

Member Avatar for AleMonteiro
0
292
Member Avatar for nadiam

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; } }); });

Member Avatar for diafol
0
467
Member Avatar for Jack_9

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.

Member Avatar for <M/>
0
338
Member Avatar for kdejan87

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? …

Member Avatar for AleMonteiro
0
246
Member Avatar for 161696e57f

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? …

Member Avatar for arunkumars
0
163
Member Avatar for Priti_P

Try something like this... if ( window.location.toString().indexOf("myPage.html") > -1 ) { window.onbeforeunload... }

Member Avatar for Priti_P
0
131
Member Avatar for Juliana20

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.

Member Avatar for rubberman
0
265
Member Avatar for nadiam

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 …

Member Avatar for nadiam
0
497
Member Avatar for ditty

Like this http://www.codeproject.com/Articles/57100/Simple-and-Free-PDF-to-Image-Conversion ?

Member Avatar for rtrethewey
0
128
Member Avatar for sundeep.gurroby

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 } …

Member Avatar for sundeep.gurroby
0
260
Member Avatar for Dinesh Dev

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.

Member Avatar for AleMonteiro
0
703
Member Avatar for Mohamed_26

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'); };

Member Avatar for almostbob
0
242
Member Avatar for amraam

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

Member Avatar for AleMonteiro
0
271
Member Avatar for jaspertan

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 …

Member Avatar for AleMonteiro
0
283
Member Avatar for riahc3

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

Member Avatar for shophiarajan47
0
195
Member Avatar for AleMonteiro

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 …

Member Avatar for Bandarigoda123
0
330
Member Avatar for anish.anick

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 …

Member Avatar for chaitanya_ysk
0
101
Member Avatar for vishalonne

What error do you get? In IE, open developers tools (F12), go to the Script tab and start debugging.

Member Avatar for VIDASOCIALfairfield
-1
369
Member Avatar for DarkBerzerk
Member Avatar for maggoteer

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 …

Member Avatar for iamthwee
0
277
Member Avatar for vaasudevi

I'm not sure, but I think this would work (C#): object[] codeString = {"$('#practices).change();"}; webBrowser1.Document.InvokeScript("eval",codeString);

Member Avatar for AleMonteiro
0
577
Member Avatar for GlenRogers

The function showProductPage is fine. Post one example of the *data* content. One thing, you don't need '<\/div>', just '</div>' is fine.

Member Avatar for GlenRogers
0
270
Member Avatar for ppmsfpd

I'd suggest one of the two: PHP + MySQL or .NET + SQL Server Both can achieve what you're looking for.

Member Avatar for AleMonteiro
0
179
Member Avatar for yibrahim

I think the easiest way is writing files to disk or on a database and the most "decent" way is using windows services.

Member Avatar for yibrahim
0
1K
Member Avatar for rouse

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. …

Member Avatar for bootstraptor
0
170
Member Avatar for raghasudha-r
Member Avatar for McLaren

`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 …

Member Avatar for paulkd
0
152
Member Avatar for ndeniche

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.

Member Avatar for ndeniche
1
248
Member Avatar for NardCake

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 …

Member Avatar for deceptikon
0
564
Member Avatar for MuthuM123

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>

Member Avatar for IIM
0
253
Member Avatar for cgull

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.

Member Avatar for cgull
0
209
Member Avatar for gbhs

Try using the insert like this: INSERT INTO scores (StudentID,subjectid,classid) VALUES SELECT DISTINCT @studentID, SubjectID, @classid FROM Scores WHERE classid= @classid

Member Avatar for AleMonteiro
0
365
Member Avatar for anisha.silva

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 …

Member Avatar for BMXDad
0
2K
Member Avatar for Buppy

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

Member Avatar for Buppy
0
144
Member Avatar for KavithaK

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/

Member Avatar for AleMonteiro
0
116
Member Avatar for techyworld

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': …

Member Avatar for Airshow
0
163
Member Avatar for cooling

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 …

Member Avatar for adam_k
0
1K
Member Avatar for cdoggg94

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

Member Avatar for cdoggg94
0
246
Member Avatar for Reliable

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 …

Member Avatar for Troy III
0
150
Member Avatar for rc_new

Try using like this: TempDate = dr.Item("dob").ToString txtDate.Text = TempDate.ToString("yyyy-MM-dd")

Member Avatar for rc_new
0
529
Member Avatar for cmabill

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>

Member Avatar for AleMonteiro
0
344
Member Avatar for davy_yg

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/

Member Avatar for davy_yg
0
217
Member Avatar for turpentyne

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.

Member Avatar for turpentyne
0
351

The End.