|
Do you need to escape the backslash with another backslash?
c:\\temp1\\test.c ?
|
|
|
|
|
I did not get your question.
'/' in text is not getting displayed
e.g. text to be displayed.
c:\temp\tree\install
It gets displayed as follows
c:temptreeinstall
|
|
|
|
|
What does your code for displaying the data look like? Please try to narrow your problem down to a small piece of code to make it easier for us to find your problem.
- Mike
|
|
|
|
|
Hi, im running IIS and someimtes apache on my home machine and would like to know how to convert the localhost word in the url to something that someone from another computer can access.
if the url I use to access the page is
localhost:8080/Home.html
and my IP adress is 152.103.2.19
then i test the url as
http://152.103.2.19:8080/Home.html but it says page not found... am I doing something wrong?
|
|
|
|
|
If you have iis and apache on same machine then first of all stop apache service then start IIS server(start-setting-control panel-administrative tools-internet services manager) click on default web site. start service.
Now browse to url(eg:- "http://160.2.80.6/test.htm")
Since you have html page you need to check its extension as it may be .htm or .html
You can also use computer name rather than using IP address.
Cheers
Amit Chowdhury
|
|
|
|
|
You might have the web server listening specifically on 127.0.0.1 or a name-based host "localhost", or a firewall might be blocking port 8080.
Are you actually connecting, but getting a 404, or is the browser unable to connect at all?
- Mike
|
|
|
|
|
For your information: if we use IE as web browser and if there is a port number specified after the server name or server IP, the URL must have the http:// prefix, if not IE cannot search the page.
|
|
|
|
|
Hello my friends,
After a discussion at this thread http://www.codeproject.com/script/comments/forums.asp?forumid=1640&app=50&fr=51#xx623641xx[^] that I had with a fellow CPian I started thinking that using DIVs and CSS for making the layout of web pages might be an intersting approach.
I would like to see how different people use the DIV and SPAN tags. I have read the MSDN documentation but I would like to see how these tags are used in terms of building layouts. For example, when do you use a DIV and when do you use a SPAN tag and why?
Do you see any advantages or disadvantages for these tags in terms of comparing them?
Thank you.
theJazzyBrain
Wise is he who asks good questions, not he who gives good answers
|
|
|
|
|
By default, div is for "blocks" of elements, which is useful for layout purposes, and span is for chunks of inline elements, such as a sentence or a word. Of course, CSS allows you to override the defaults and make a span work like a div and vice-versa
- Mike
|
|
|
|
|
Yeah, functionally, a span is exactly the same as a div, except that a span has the its css display attribute set to 'inline' by default, and a div has its display attribute set to 'block' by default. That's pretty much it.
NATHAN RIDLEY
Web Application Developer
generalgherkin@yahoo.com
|
|
|
|
|
How to replicate web content for multiple domain name.
(www.ukphoneshop.co.uk and www.allmobiles4u.co.uk)
Amit Chowdhury
|
|
|
|
|
Simple....
Just get as many 'domain names' as u want. Point them to a same webspace (with those dns options). And then process the requests (inside the webpage) with respect to the 'site-referer' to show that there are 'different' websites.
Does this satisfy ur request?
I was born intelligent Education ruined me!.
|
|
|
|
|
hi..can anyone tell me how to use tomcat server with JSP?
tks...
Have a Super Blessed Day!
-------------------------
For God has not given us a spirit of fear, but of power and of love and of a sound mind.
2 Timothy 1:7
"For God so loved the world that He gave His only begotten Son, that whoever believes in Him should not perish but have everlasting life."
John 3:16
"Therefore you also be ready, for the Son of Man is coming at an hour you do not expet."
Luke 12:40
|
|
|
|
|
can someone tell me how to access database thru JSP please?
tks...
Have a Super Blessed Day!
-------------------------
For God has not given us a spirit of fear, but of power and of love and of a sound mind.
2 Timothy 1:7
"For God so loved the world that He gave His only begotten Son, that whoever believes in Him should not perish but have everlasting life."
John 3:16
"Therefore you also be ready, for the Son of Man is coming at an hour you do not expet."
Luke 12:40
|
|
|
|
|
I have a skinned site. The skinning works fine except on <DIV> an <SPAN> tags. The <DIV><SPAN> tags do not seem to be affected by the style? Any ideas why?
.ButR
{
background-image: url(/CSS/Skins/Default/BuR.gif);
width: 10px;
height: 23px;
background-color: transparent;
}
<div id="Item1"><Span class='ButR'>Item one</Span></div>
|
|
|
|
|
Does anyone know of any php lib/function which will check posted data? I hate doing the whole addslashes(), check length, regex, and so on...
I'm drinking triples, seeing double and acting single
|
|
|
|
|
hi...
i need some information about what is JSP?
does it have a future?
is it made by microsoft or sun?
is it easy to pick up?
will it be usefull in future?
is it gonna be replaced by any new lang such as asp.net?
how fast can i learn it?
can u gimme some good tutorials to learn it?
tks a lot
Have a Super Blessed Day!
-------------------------
For God has not given us a spirit of fear, but of power and of love and of a sound mind.
2 Timothy 1:7
"For God so loved the world that He gave His only begotten Son, that whoever believes in Him should not perish but have everlasting life."
John 3:16
"Therefore you also be ready, for the Son of Man is coming at an hour you do not expet."
Luke 12:40
|
|
|
|
|
JSP = Java Server Pages. It's developed by Sun. See the FAQ and check out this short tutorial
|
|
|
|
|
I am on a similar "password catcher" project, and need functionality similar RoboForm etc.
Basically, I'll need to catch the user/password fields at the moment the user clicks on "OK". This will be done from a standalone program, written either in C# or C++/WTL.
Any ideas on the catching part ?
|
|
|
|
|
I would like to be able to insert values into an html form on startup from a second file which contains the actual data. How would I go about doing this?
Thanks
|
|
|
|
|
That's great. Seriously, why ask a question like that if you're not going to tell us anything else? Are you trying to do it client-side or server-side? And if server-side, what scripting language are you using? How's the file formatted? Why are you trying to fill it from a file? Please remember that noone on this forum is psychic (I think) and that you'll need to be slightly more specific than you were in your question if you expect any kind of helpful response.
NATHAN RIDLEY
Web Application Developer
generalgherkin@yahoo.com
|
|
|
|
|
Client-side using Javascript???
AFAIK it's next to impossible...you can't access files using JScript...however maybe you could use the following hack...if it would work I dunno i'll leave the details to you...
1) have an IFRAME (preferably hidden if you can do this with IFRAME's using it's visible: hidden inside style attribute.
2) This IFRAME's SRC should point at the file your going to use to load the form fields.
3) In the main main window's onLoad() you would then have to somehow extract the contents the IFRAME referred too using innerHTML or some method of IFRAME's.
4) Parse the data file and set the form fields using document.forms(0).control.value=test
Thats all I can think of as far as client side...server side....thats easy when using PHP/ASP
<?
fopen('mydatafile.dat');
echo '<input type='text' value='\''.$parsed_value.'\''>';
?>
Thats all she wrote...
Cheers
I'm drinking triples, seeing double and acting single
|
|
|
|
|
Hello,
I'm trying to count the visits that my web page is receiving, but it seems impossible... I've been using some codes that I've found in the internet, but no one works...
here are the samples:
******************************************
SAMPLE 1
******************************************
<?
$ar = "contador.txt";
$fp = fopen($ar,"r");
$visitas = fgets($fp, 26);
fclose($fp);
$visitas = $visitas+1;
$fp = fopen($ar,"w+");
fwrite($fp, $visitas, 26);
fclose($fp);
echo $visitas;
?>
******************************************
SAMPLE 2
******************************************
<CFPARAM NAME="attributes.file" DEFAULT="contador.txt">
<cfset sPath = #GetDirectoryFromPath(CGI.PATH_TRANSLATED)#>
<cfif NOT FileExists("#sPath#\#attributes.file#")>
<cffile action="WRITE" file="#sPath#\#attributes.file#" output="0" addnewline="No">
</cfif>
<cffile action="READ" file="#sPath#\#attributes.file#" variable="Mostrar">
<cffile action="DELETE" file="#sPath#\#attributes.file#">
<cfset Mostrar = #Mostrar# + 1>
<cffile action="WRITE" file="#sPath#\#attributes.file#" output="#Mostrar#" addnewline="No">
******************************************
SAMPLE 3
******************************************
<?
$counterFile = "contador.txt";
function displayCounter($counterFile)
{
$fp = fopen($counterFile,rw);
$num = fgets($fp,5);
$num = 1;
echo "$num";
exec( "rm -rf $counterFile");
exec( "echo $num > $counterFile");
}
if (!file_exists($counterFile))
{
exec( "echo 1 > $counterFile");
}
displayCounter($counterFile);
?>
******************************************
END OF SAMPLES...
******************************************
PS:
In order to make the samples in PHP, I've changed the *.htm extension of the files to *.php; all this samples are placed in the head...
could you help me?
Thank you in advance
|
|
|
|
|
Does your server support PHP scripts? Are your scripts running in SAFE mode?
AT quick glance the code in example one seems fine.
I'm drinking triples, seeing double and acting single
|
|
|
|
|
I want to develop a payroll application, but we aren't so sure how to integrate our ASP.NET app with the bank. Database on hosted on our own server. Database 'employee' table resmeble this:
employeeID
salary
employee_payroll_account_num
... other things...
We want to automate this process. How can we hook up our system with the bank so money can be debted from our company account and transferred to employee account automatically? Can we find relevant information from bank's website directly? Do we need to setup a merchant account, similar to credit card processing? Payment gateway? But this is not credit card processing. It's transfer from one bank account to another. What if company's bank is different from employee's bank?
|
|
|
|