- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
45 Posted Topics
I am using Ajax to load the content of a div element. I have a call back function that I want to use to scroll to the appropriate element, after the data has been loaded. I also have the id of the element I want to scroll to. Most of … | |
I need to suspend processing in my script for a few seconds, and i am not sure how. Thanks, sj | |
What's the proper format? Also does anyone know where i can find a good CSS online reference besides W3Schools? Current Code. [code] .className td {border: 1px solid #CCC;} .className th {border: 1px solid #CCC;} [/code] i want to save some characters... would this be valid? [code] .className td th {border: … | |
Re: Ok so if have this same problem. I'm using textbox to allow users to enter notes which is saved to the DB. When a users selects a customer to view their notes, all the text in the textbox is highlighted when the form loads. I'm afraid they will mistakingly delete … | |
I have a DataGridView which I AllowUserToAddRows behavior enabled. I want to be able to force that only one row be added at time, then if the user clicks the save button the row is inserted into the database, and then another row may be added if the insert was … | |
Can someone provide sample code on how to create and fill a DataTable with the table schema and data from a mySQL database? I found examples where you set up columns and other information programmatically. But i wanted to know if there a way to "sync" the schema in the … | |
I have a dataGridView with 4 columns. 3 of the columns i want to use a combobox. In the datagridview properties from the design view i already set the columns to DataGridViewComboBoxColumns. how do i from the code set the columns values from a dataset? I can get the data … | |
I get this script error “Invalid argument” when using appendChild(). When in Microsoft Visual Studio Debugger I see “htmlfile: Invalid argument”, and the line it blows up on is t.appendChild(n); The div I want to append the child div to is the top most div in the dom. Anyone see … | |
I have 3 tables. Company, phone, companyPhone. The company table has an auto_increment companyID primaryKey The phone table has an auto_increment phoneID primaryKey The companyPhone table row is made up the companyID, and the phoneID. On my form the user will enter company information and the company phone number. After … | |
Re: I have a similar issue. I have modified my call to Application.run in the program.cs file, so that it is not responsible for the thread. [code] frmLogin login = new frmLogin(); login.Show(); Application.Run(); [/code] The issue I have now is after I log in the second form displays, but the … | |
Re: I have a similar issue, but my users are not actually starting the program. There is a shortcut to the program in the windows startup folder. After a few days of running the program will have multiple processes. What could be causing this if the users are not actually clicking … | |
I am using IBM Websphere, and from here i can just click Run As java application, and the program runs inside websphere. But i want to run the program outside IDE. I created a jar file and everthing is correct with it. It has the MANIFEST.MF and all. So what … | |
Someone gained access to two of my clients computers systems this week. On both systems some shady ebay and paypal transactions took place. the computers have PC Anywhere installed and vnc and I changed the authentication for both programs on both systems today. Is there a chance they used something … | |
Is there a way using javascript to grab the height of a div. The issues is that when I render my html page I have a div with a set size. It only takes up about half of the screen. When the content in that div is too large, the … | |
Re: after this: newOpt.text = <%=Value%> ; you can then check the innerHTML of newOpt var. Will the <%=Value%> always be in string format? If not you can use isNaN() which will return true if passed a string. If it's false then just set the className of the option to your … | |
I have apache in this dir C:\Program Files\Apache Software Foundation\Apache2.2\ and Mail.php and PEAR.php are in this dir C:\php\PEAR\pear When I add the files to the dir the log file is complaining about below, the wiki spits out the following: [code] Could not send confirmation mail. Check address for invalid … | |
I am in in the process of adding mediawiki to a sever that already has Apache and php installed. | |
Is there a javascript function that will reload a dom element if given the element id? I am using javascript to update a divs innerHTML with the location of an image. Cut of the javascript code below. [code] var images = new Array(32); images[0] = "<img src=\"images/album/1.jpg\" />"; images[1] = … | |
Re: Try adding the "defer" attribute to the end of your script tags. i.e.(<script type='"text/javascript" defer>your javascript</script> With this attribute, the code inside the script tags will only get executed when the page has been loaded completely. | |
Re: Your getting that error because that property does not exist on the XML document. You must first parse the document before you can access the DOM. Once you do this your code should work. Here is some info on parsing an XML document: [url]http://www.w3schools.com/dom/dom_parser.asp[/url] | |
I have two css classes. ".test1 and .test2" Can anyone explain what this code is doing? [code] .test1{height: 100%; clear: both; border: 1px solid #999;} .test1, .test1 .test2{height: 100% !important; height: 30em; min-height: 30em; } [/code] I'm thinking that all the styles in .test1 are applied to the element with … | |
Re: [QUOTE=AndrewSmith;245636]Holla I am using AJAX to load content into a section of my website. I would like the content that is loaded in to execute some javaScript. However, when i simply include it in the response, it doesn't get evaluated. Say i request a page, test.htm. That page includes ONLY … | |
Re: Your not doing anything wrong. Netscape does not support media screen in version 4. Support begins at 6.0 View the table here for more details. [url]http://www.codestyle.org/css/media/screen-BrowserSummary.shtml[/url] | |
Can this be done with java.io? Thanks, sj | |
Re: This would work in ie. [code] document.styleSheets[i].rules[i].style.styleFloat [/code] rules being the line number were the actually style in question needs to be updated. rules will give you the selector text of you class name. (i.e ".test") This should work, but would break if you update any line before the line … | |
Re: You could write a program that does this. I'm sure the C++, or JAVA guys can help. Use java.io to open the files Then search for the </body></html> tags. if the search is successful move to the next file. else insert the tags at the end of the file, save, … | |
I have two html files. FirefoxBug.html [code] <html> <body> <div style=background-color:red;> <iframe src="/iframe.html"></iframe> </div> </body> </html> [/code] And iframe.html [code] <html> <body style=background-color:blue;> <div> <p>This backgroud should change</p> </div> </body> </html> [/code] I have these two files in the same folder on my desktop, and I am not sure why … | |
Re: For firefox i think you could can use "-moz-scrollbars-none" for the overflow property | |
Is there a way to get this down to one line of code? [code] boolean [] myArrary = {true, false}; return myArrary; [/code] I'm trying to combine those lines into one, but I am not sure what the correct syntax would be. Thanks, sj | |
How do i return a boolean array? i get an error stating that i can't cast from boolean[] to boolean. I have something like below. [code] method logic... boolean [] information = {true, false}; return information; // this line does not work. [/code] Thanks sj | |
I need to check if two parameter names exists in the url. If any of them do i need to replace the value of the parameter. I can match the parameter name, but i am not sure how to replace the value. The two parameters/values would be at the end … | |
I have 10 large .txt files with over 13,000 rows of data. Each “column ![]() | |
I have my div element which has a className. i want to grab the display property for this div at runtime in firefox. i have tried something like this with no luck in firefox or IE; any other ideas [code] var divObject = document.getElementById("divObjectId"); divObject.style.getExpression("display"); [/code] in ff i get … | |
i have an input element with a type of text. I want to check that only numbers are entered in the element. I also want to alert the user when they enter anything that's not a number. HTML for the element below. [code] <input type="text" id="QTY" name="QTY" title="Qty" size="3" onkeypress="key(event)" … | |
Re: I think the problem is with the code below. You need a space between "00" on the background style [code] #filmstrip { width: 100%; height: 23px; margin: 0; border-style: none; background: url(../img/filmstrip.gif) 00 repeat-x; } [/code] | |
Re: Here is little example to get you started on debugging. I would place some alerts in there to see what's going on. I am not exactly sure what you’re trying to do with the line below. You already know the value of prevbal… etc. If you want to set the … | |
How do I get an image to display before the url? Thanks SJ | |
Re: There are many other ways to achieve the desired format. The code below should be close to what you are trying to do. [code] div{text-align:center; } div.logo{width:20%; height:5em; background-color:yellow; float:left;} div.topMenu{width:80%; height:5em; background-color:green; float:right;} div.leftMenu{width:20%; background-color:black; float:left; height:20em;} div.content{width:80%; background-color:yellow; float:right; height:15em;} div.bottomMenu{width:80%; height:5em; background-color:green; float:right;} <div class="logo"> LOGO </div> … | |
I am brand new to C#. But have about 6 months of programming experience in java. Which C# books do people prefer? Thanks | |
has anyone ran into this before? The id and name had a capital letter. “submitButton | |
Re: If your html page utilizes this image on multiple pages I would move the logic to a css file. It’s also good practice You could do something like this in a css file if it were a background image or something. Just an example. [code] body{background: url(path/to/image/on/your/computer/image.gif) repeat-y;} [/code] | |
Is there a way using javascript to change the display of a form after it as been rendered? I won’t to remove a checkbox on a form if a certain condition is true. Since this case is not the norm, the default rendering displays the checkbox even though it’s not … | |
I am validating a html form. On submit I have a functions like the one below. I have seen examples like this, which is why I tried using “with | |
For example Class A does not have a default constructor. Class B extends A Any reason/benefits to do this? [code] public class B extends A { public B() { super(); } } [/code] | |
What are the benefits\drawbacks about the design below? Here is a simple example of the possible class design. What are the benefits of doing it this way? vs. just dropping the interface class all together. ================================= Public interface Car { public String getColor(); public void setColor(); } ================================== public class … |
The End.