- Strength to Increase Rep
- +8
- Strength to Decrease Rep
- -2
- Upvotes Received
- 21
- Posts with Upvotes
- 18
- Upvoting Members
- 20
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
256 Posted Topics
I browsed google and found nothing so thought i would put my efforts up here. hope this all helps. this function will allow you to return the number of days between two dates minus saturdays and sundays. (including the start date) | |
Re: you cant hide the textbox but if you set the display style property of the FORM element to 'none' and create another element of type button then using javascript you can open the dialog onClick of the button e.g. [CODE] <form name="form1"/> <input type="file" name="filediag" style="display:none" /> <input type="button" value="browse..." … | |
Re: Just out of curiosity why would you want to do this? You can change your theme programmatically by changing the registry values found at... [I]HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Themes[/I] | |
Re: 1. Don't use ID like you do. ID's are meant to be unique but your first section use "qa1" and "qa2" twice in both anchors and is then used in the divs as part of the second section. 2. You dont need the "OnClick" attribute if using jQuery (it is … | |
Re: you would do the following. Hope it helps. [CODE=html]<html> <head> </head> <body> <table id="countit"> <tr> <td class="count-me">12</td> <td>Some value</td> </tr> <tr> <td class="count-me">2</td> <td>Some value</td> </tr> <tr> <td class="count-me">17</td> <td>Some value</td> </tr> </table> <script language="javascript" type="text/javascript"> var tds = document.getElementById('countit').getElementsByTagName('td'); var sum = 0; for(var i = 0; i < … | |
below is a very simple encryption class which shows how to encrypt sensitive data (very simply) this example converts a string to hexadecimal form and back again with some simple error handling. please leave some feedback if you find this useful | |
Re: an application that suggests final year projects maybe ? really pick something youll enjoy (you will do a much better job) | |
Hi Guys, I have a gigabit switch which supports auto MDIX, is there any performance overhead using this feature to connect for instance a router to it via a patch cable rather than a crossover cable? Help much appreciated. | |
Hi Guys/Gals, Setting up my home network (I am not a networking guru) and wanted your expert opinion on the best configuration for my hardware. I have the following [I]generalized [/I] pieces of gear... [LIST=1] [*]Gigabit Switch#1 [*]Gigabit Switch#2 [*]Wireless N Router Supporting Gigabit [*]PC#1 [*]PC#2 [*]XBOX [*]AV Receiver [*]HTPC … | |
Re: You want to use the following... [CODE=JavaScript]var session = <%=Session["username"] != null ? "true" : "false"%>;[/CODE] Now for as to why you would want to do this is beyond me? If you can check this when the page is being processed on the server you can simply force a redirect … | |
Re: given a file structure as follows... [CODE]DirectoryA -- SubDirA -- SubDirB DirectoryB -- SubDirA -- SubDirA1 -- SubDirB[/CODE] If your page (lets say "Default.aspx") is in "DirectoryA/SubDirB" like so... [CODE]DirectoryA -- SubDirA -- SubDirB [COLOR="Red"]-- Default.aspx[/COLOR] DirectoryB -- SubDirA -- SubDirA1 -- SubDirB[/CODE] And you want to map the path … | |
Re: Try using the new HTML5 attribute [URL="http://www.w3schools.com/html5/att_input_placeholder.asp"]placeholder[/URL], this will only work in modern browsers. [CODE=html]<input type="text" name="myinput" placeholder="enter something" />[/CODE] | |
Re: If you just want to keep remembering values then use a List as it dynamically resizes for you. [CODE=VB.Net]Public anscapp As New List<Double>()[/CODE] Then you can add elements like so... [CODE=VB.Net]anscapp.Add(Double.Parse(Combocapp.Text) * 2.35);[/CODE] | |
Re: Also the script tag should be written as... [CODE=HTML]<script type="text/javascript"> ... </script>[/CODE] The attribute [b]language[/b] has been deprecated a while now. | |
Re: so your linking a html file to a button in flash ? or is it another type of file. Post the actionscript here ? | |
hello all, i have a belkin 54g router connected to 3 devices via ethernet. And a Netgear WGR614 router upstairs that connects 3 devices via ethernet. They are within range of each other and i know for a fact that the Belkin can be set up as an access point. … | |
does anyone knwo of any good online services that will allow me to view my email stored on my exchange server at a static IP address away from my network with an internet connection ? | |
Re: Im not sure you will be able to check if excel has a specific file open but you could easily close all Excel instances from your application with something along the lines of. [CODE=VB] Dim instances() As Process = Process.GetProcessesByName("EXCEL.EXE") For Each instance As System.Diagnostics.Process In instances instance.Kill() Next [/CODE] … | |
Hi all. I have a requirement to collect a bitmap image directly from a given AVI file. Does anyone know of any decent .Net only libraries that by any chance can achieve this? I would like to avoid any COM interops if possible but if you have had experience using … | |
Re: A simpler approach would be to iterate through all the comboboxes on your form (or control that holds combo boxes e.g. a Panel), build up a collection of these comboboxes then compare them accordingly. The following code contains two methods, [B]AreSelectedComboBoxValuesDuplicated[/B] and [B]GetComboBoxes[/B]. [B]GetComboBoxes[/B] does exactly what it says on … | |
i have created websites for clients for some time now but recently i have found it difficult to add that little extra to a project to make it unique from all those that surround it. I wanted to know what you lot do to get the old juices flowing and … | |
Re: [QUOTE=himanjim;622826]I'm really having hard time importing ASPNETDB.mdf to remote server running sqlserver 2005.. I'm using sql server express edition (along with visual web developer 2008) I use the same string <add name="aspnetusers" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\ASPNETDB.MDF;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient" /> No connection can be established.... Then I changed that to <add name="aspnetusers" … | |
Re: [QUOTE=sreekiran;432736]using javascript[/QUOTE] are you talkin about validating it to check whether it is REAL or whether the format is correct ? | |
Re: [quote=sidereal;350879]Hi all, I have a dropdown and a textbox and I want to be able to change the textbox to a dropdown control, after a certain value in the dropdown is selected. I have a problem in changing the controls from textbox to dropdown. Any help???[/quote] ok this could be … | |
Re: why not use a function like [CODE] function getchecked() { var newtxt = ''; var chkbx = document.getElementsByTagName('input'); for(var i = 0; i < chkbx.length; i ++) { if(chkbx[i].type == 'checkbox' && chkbx[i].checked === true) { if(newtxt.length !== 0) { newtxt += ','; } newtxt += chkbx.innerHTML; } } document.form.marktext.value … | |
hello all, the company i am working for (quite a small company) are looking to host our web applications suite on our internal server running windows server 2003 and IIS 6 and allow external access to it. We have a static IP from our ISP and currently can access the … | |
This is a very brief overview of how to achieve an ON-THE-FLY creation of an appointment in the clients outlook calendar. This will not force the user to add it to there calendar but gives them the option to add it automated. Using the older .vcs file extension for outlook … | |
Re: [QUOTE=achristov;875617]javascript is especially useful serverside, where ASP.NET is absolutely weak... ;) from this point on you can guess my answer. Or maybe we wouldn't need servers in the future...[/QUOTE] Are you saying that javascript is useful serverside? Or is it intended to be sarcastic, i hope so! I agree with … | |
Re: This should do the trick [CODE=CSHARP] // Split the values by comma String[] values = "a,b,c,d,-,,e,f".Split(','); // Create a new list to hold filtered content List<String> filtered = new List<String>(); // Create regex to check each value Regex reg = new Regex(@"^[a-zA-Z]+$", RegexOptions.IgnoreCase); // Loop through values foreach(String value in … | |
Re: what if popups are disabled ? i suppose you could check if the window is opened after calling the popup script but i would stick with the javascript confirm option as it is likely to cause you less grief. | |
Re: tonymuilenburg has it right, spawn another thread to do the work then show the dialog to continue with whatever logic you require. | |
Re: As a side to this its great to learn from the ground up but save yourself some time and use a javascript library. jQuery (and many others) can achieve what you are trying to do in 5 lines. [CODE=javascript] function callAHAH(url, pageElement, errorMessage) { $(pageElement).load(url, function(responseText, textStatus, XMLHttpRequest) { if(textStatus … | |
Re: You cant. Not just using javascript. With IE you can get your user to set there browser settings to low and it will let them do this but firefox or any other browser will not allow it as its a major security leak. The best ways i have seen/and done … | |
Re: [quote=misschristi;354479]I need some help. I am trying to post a video slideshow in to my auction listing, and cannot figure out how to do that. I have found on your website here, the codes to put the media player into the listing, but cannot figure out how to put the … | |
Re: Having used jQuery alot and spry very little I am perhaps biased towards jQuery but from what I have seen and used, Spry seems to be Adobe's play on providing rich "widgets" or controls via javascript whilst they are very good as you have said... [QUOTE]everything that the instructor did … | |
Re: or use a session variable ? [CODE]Session("session_name") = DATA[/CODE] then get it back wherever you wish by using [CODE]Session("session_name").value()[/CODE] then free up memory and [CODE]Session.remove("session_name")[/CODE] (SYNTAX VB.NET) | |
Below is code i wrote as a wrapper for the microsoft office interops. It provides ways to establish the instance of the application and cleanup any remaining office processes after use. [I]Note the class I use is alot bigger but i have added the basics as a starting point.[/I] This … | |
Theres no doubting that using Java Swing is time consuming on load times. So heres a demo splash screen to keep your users captivated. You will need two classes for this example i.e. Splash.java and SplashWindow.java (remember line: 8 change this to match your splash image) just change the class … | |
Re: you would need some form of server side language to dynamically create a folder/file listing in html using php, asp.net or other. | |
Hello All, I haven't posted a question in sometime, im hoping this is where all my previous help pays off :P Basically starting a newish project which must be written in VB.Net (great) but I am implementing the MVC pattern pretty much throughout the entire project as there is a … | |
Re: You will need to randomly generate numbers and check that they have not already been displayed. The below does this by continuosly looping until it has found the total range of values. Each loop generates a new number then checks if it exists in the array. If not the new … | |
Re: SELECT * FROM tablename WHERE somefield LIKE '%searchquery%' other than taking the time to write an iterative script you will need to write individual SQL statements for each table. | |
Re: it is very hard for a developer on any platform to break through on any freelance website, most projects get underbid and legit projects usually require the developer to have several samples to show a client before they will even consider you. That said, good luck but I would work … | |
Re: you cant directly as they are two seperate languages. you could output content to the page using a script block somthign like the following [code=csharp]string g = "ZOMGGGG"; bool s = g.contains("GGGG"); Response.Write("<script type=\"text/javascript\">alert('" + s + "');</script>");[/code] | |
Re: This should be in the JavaScript forum but from looking at your code quickly it seems ok but you need to make sure the browser your using supports creating your XMLHttpRequest object like you do. The following code is taken from a project of mine which I know works feel … | |
Re: seems fine but a tip is dont use document.writeln. try having a content area in the page e.g. a "<div>" then give this element and ID and set its innerHTML property to the text you want. [CODE=javascript]document.getElementById('someelement').innerHTML += 'your text';[/CODE] | |
Re: you cannot nest a form within a form as set by w3c. | |
Re: just add a function to the onload method of the document this will fire when the page has finished loading all external content. You can use this then to hide your gif after the page is done. [CODE=html]<html> <head> <script language="javascript" type="text/javascript"> function hideLoading() { document.getElementById('loadingMessage').style.display = 'none'; } </script> … | |
Re: why use javascript for this ? CSS is perfectly capable of doing this without the scripting overhead. [CODE=css]/* Example changing a td elements background colour */ td { background-color:transparent; } td:hover { background-color:yellow; } /* Example changing a div's background image */ div { background:transparent url('some_image.jpg'); } div:hover { background:transparent … | |
Re: you wouldnt want to put a value through all them methods in fact doing so would counteract some of the methods used e.g. [CODE=php]$value = "abc '123'"; $value = addslashes($value); $value = stripslashes($value);[/CODE] the previous would return the same string not performing any validation at all. From experience all i … |
The End.