|
Here's some info on XMLHTTP that you could adapt to your needs:
http://www.codeproject.com/jscript/refreshpartweb.asp
NATHAN RIDLEY
Web Application Developer
generalgherkin@yahoo.com
|
|
|
|
|
I found this, which I can sort of relate to a little better...
http://www.codeproject.com/internet/amhttputils.asp?target=%22server+status%22&df=100&forumid=2575&select=626806
Still not really what I'm after... But what can you do..
|
|
|
|
|
When i make a table and then try to have text or a picture beside the table it wont let me. Even if I set the table width to 20% and then center the image it will center the image, but under the table. =/ i am semi-new to html so if someone out there knows what im askin..please help! thanks!
|
|
|
|
|
That's because tables are block-displayed objects. What that means is, by default, html likes to ensure that they are the only object on the line that they occupy. Two solutions are:
1) In your table code, add the following:
2) Use a second table, with one row and two columns. In the first cell, put your table, and in the second cell, put your image.
Hoppe this helps!
NATHAN RIDLEY
Web Application Developer
generalgherkin@yahoo.com
|
|
|
|
|
well.. the first option seemed to work, the image showed up right beside the table, but when i centered the image it dropped down under the table and centered? i will go on and try the second option, but i would like to be able to keep the picture out of a table. thanks though for the help! =)
|
|
|
|
|
any other tips? or reasons why i cant center it beside the table? ..if someone has any example code with a table on the left of the page with multiple rows and then an image centered directly beside the table i would greatly appreciate it! or just anything to help me out =) thanks!
|
|
|
|
|
Was brushing up on my css last night and found something else you could try:
NATHAN RIDLEY
Web Application Developer
generalgherkin@yahoo.com
|
|
|
|
|
worked perfect...thanks man!
|
|
|
|
|
Ok, im using foobar to listen to music, and i'm outputting my currently playing title into a file (shtml, html, txt, whatever i want).
I've got this on my desktop (http://desktop.thekeegster.com/nowplaying.shtml) and i'd like to get that on my server. THe 2 computers are on the same network.
Now, i've tried using php includes, but those gimme errors. I'd really rather not have to use an iframe, because i want it to fit in a little section of my site, and the size of the titles vary, so i can't know the exact size of the frame.
is there some way to get just the text from one website into another without using frames?
*.*
cin >> knowledge;
|
|
|
|
|
Maybe you could try an XMLHTTP grab? i.e. use some JavaScript to grab the contents of the file, strip away whatever's outside the body tag and insert the resultant text into the area on your page where you want it.
NATHAN RIDLEY
Web Application Developer
generalgherkin@yahoo.com
|
|
|
|
|
i wrote a little python script
#!c:/python22/python.exe<br />
<br />
print 'Content-Type: text/html\n\n'<br />
<br />
<br />
import urllib<br />
usock = urllib.urlopen("http://desktop.thekeegster.com/nowplaying.shtml")<br />
lines = usock.read()<br />
<br />
print lines
i had to learn python, but it works now. thanks for the tip.
*.*
cin >> knowledge;
|
|
|
|
|
Hello,
I'm programming in a little enterprise, and also I maintain it's web page.
Today I've noticed that one of the links is not working properly: the link points to the right file (IM SURE, REALLY SURE) and when I click that link, it only appears a blank web page with the name of the right file.
I've called my ISP and they told me that it is a programming question and that they doesn't support it.
Well, I've deleted all my cookies and all my temporary files and even in this way, it still show me the blank page.
ADDITIONAL NOTE:
I have my web page translated to some languages.
As I have not had enough time to translate it to italian, portuguese and german, I had copied the same files that in english in order to have the same directory structure. The funniest thing is that if I copy the italian folder (in which the same link works OK) inside the english folder, with the same file names and so on, the problem still happens...
if you want to test it, go to:
http://www.tamelectromecanica.com/angles/nivell2-lesnostresm-re5cp-0001.htm[^]
(this is the one that doesn't work)
http://www.tamelectromecanica.com/italia/nivell2-lesnostresm-re5cp-0001.htm[^]
(this is the one that works)
PS:
the normal way to access the page that don't work would be:
1. www.tamelectromecanica.com
2. OUR MACHINES
3. TAM RE 5CP (the english version is the one that doesn't work)
thank you in advance...
|
|
|
|
|
Well, both of the links that you provided work fine...
theJazzyBrain
Wise is he who asks good questions, not he who gives good answers
|
|
|
|
|
Solved... I have only to press Ctrl+F5 in order to reload the page, it seems that if I press only F5 the page is not trully reloaded...
|
|
|
|
|
Both links work nicely, though I have no idea what mopes are. Could that have been meant to be mops?
"Some people are like Slinkies... not really good for anything, but you still can't help but smile when you see one tumble down the stairs."
|
|
|
|
|
well... I also have no idea what mopes are... I'll check it and change it as fast as I can... thank you...
and returning to the main problem, I can't understand why in two computers in my enterprise I can't see the english link...
|
|
|
|
|
Solved... I have only to press Ctrl+F5 in order to reload the page, it seems that if I press only F5 the page is not trully reloaded...
|
|
|
|
|
Yes, F5 only reloads the page from the local cache, and only fetches a fresh copy if the local copy has expired. Ctrl-F5 overrides that behavior and forces a fresh copy to be requested.
"Some people are like Slinkies... not really good for anything, but you still can't help but smile when you see one tumble down the stairs."
|
|
|
|
|
Roger Wright wrote:
Yes, F5 only reloads the page from the local cache, and only fetches a fresh copy if the local copy has expired. Ctrl-F5 overrides that behavior and forces a fresh copy to be requested.
Nice I never knew about this lil ctrl+f5 shorcut...
I'm drinking triples, seeing double and acting single
|
|
|
|
|
I have a page with a form in ASP. On the page a have a select box, when the user selects an option, the form is posted and the corresponding data is loaded into a new select box. This I have no problem with. What I do have a problem with is when the user clicks on the submit button to add the data to the database. Form validation must first take place. I do not know how to go about that form validation only occurs when the user clicks the sumbit button. The form is posted in one of 2 ways, either by selecting an option in the select box, or when clicking the submit button. It might sound confusing now, but send me a mail at brcvogt@yahoo.com then I can explain more and send you my sample code. I need this to be done ASAP as it is part of my college project.
|
|
|
|
|
I think you would be better off posting your code straight up here. You're more likely to get the response you're after.
NATHAN RIDLEY
Web Application Developer
generalgherkin@yahoo.com
|
|
|
|
|
hey guys
if i want to insert some text in a textarea object value field at the current cursor location when the user clicks a button or some other link how do i do it? i mean how do i know where the cursor is in the string?
am i dumb or is it tricky?
thnx
"there is no spoon" biz stuff about me
|
|
|
|
|
This is the way I do that sort of thing:
<code language="javascript">
function insertSomeText(str) {
document.getElementById('yourtextarea').focus();
var sel = document.selection;
if (sel!=null) {
var rng = sel.createRange();
if (rng!=null)
rng.pasteHTML(str);
}
}
</code>
NATHAN RIDLEY
Web Application Developer
generalgherkin@yahoo.com
|
|
|
|
|
|
no worries
NATHAN RIDLEY
Web Application Developer
generalgherkin@yahoo.com
|
|
|
|