|
look on http://sourceforge.net/, i think there are a number of open source CMS's built on ASP.NET...
--
Raoul Snyman
Saturn Laboratories
e-mail: raoul.snyman@saturnlaboratories.co.za
web: http://www.saturnlaboratories.co.za/
linux user: #333298
|
|
|
|
|
just an update...
been playing around with a very nice open source portal called Rainbow Portal (www.rainbowportal.net), written in asp.net and c#. i'm no .net fan (in fact, quite the opposite - i prefer my LAMP architecture), but this has really impressed me.
--
Raoul Snyman
Saturn Laboratories
e-mail: raoul.snyman@saturnlaboratories.co.za
web: http://www.saturnlaboratories.co.za/
linux user: #333298
|
|
|
|
|
Please , help me !
I want to use vbscript (in asp) to create RichTextBox control but i can not .
Because i want to show a rtf document.
Thank you .
|
|
|
|
|
|
How to call a javascript function when I type in a textbox and hit the Enter button?
Thanks.
|
|
|
|
|
Hitting the Enter button will submit the form you are working on. You can add an "onchange" attribute to the textbox which will call the javascript. The limitation is, however, that the user has to change some text and then exit the textbox. (IIRC, "onblur" does the same thing only is called ANY time a user exits the text box and not just when text has been entered).
There is the "onsubmit" event of a form tag. When the user hits enter, this event is fired. Please note, however, that if you do not want the form to actually be submitted (as in the case of validation, then you have to be sure to return false from your function and have something like
<form onsubmit="return someFn();">
..
</form>
Pegmeister
|
|
|
|
|
I'm wondering if anyone has come across this before. I'm trying to get values out of a database using values set in a cookie.
I'm sure that cookies can be processed with VBscript, but not being familiar with that, I get the values using Javascript, set a text box with the values I need, then build an SQL string.
However, for some reason, anything within a VBScript script tag, is not visible when you exit the script and use the <% %> tags. For example, once the text box is set, I use the following:
dim SQL
tempArray=Split(Document.form1.Elements(0).value,",")
SQL="Select * from tblSubPart where PartID IN ("
for each part in tempArray
SQL=SQL & "'" & trim(part) & "',"
next
SQL=SQL & ")"
<%
Set objDC = Server.CreateObject("ADODB.Connection")
objDC.Open "data"
Set objRS = objDC.Execute(SQL)
%>
for some reason, I cannot use the code to open the recordset within the tags, but without the tags, it will not recognize my reference to the form item. As the code sits, it does not see the variable "SQL" when it tries to open the recordset.
Does anyone know what I am overlooking?
|
|
|
|
|
I want to get the size of the responce from a web service and compare this with the size of a responce from a local function.
Does anybody know how i might do this?
Code samples appreciated
Thanks in advance
Colin McAdam
(.NET wanabe)
|
|
|
|
|
I am trying a javascript typing effect.
I am facing problem in giving delay between printing of two characters.
I tried setTimeout but is not working as shown below:
show();
Please help
Ranjan Goyal
|
|
|
|
|
Hi,
This is what you need to do :
function show()<br />
{<br />
var typeLength= str.length<br />
document.typewriterScreen.typepage.value= <br />
document.typewriterScreen.typepage.value + str.charAt(i)<br />
i++<br />
var timeID= setTimeout("show()",50)<br />
}
In my case typewritescreen is my form and typepage is my textarea. But you could use your document property.
What's happen is that the code var timeID= setTimeout("show()",50) sets a time out for the script of 50/1000 of a second before it runs through the function again.
Hopes this helps you out
|
|
|
|
|
I tried following and it is not working.
But I can write on the status bar as shown below in commented portion.
Moreover I don't want to write in the textbox but on the document.
Please Help.
Ranjan
|
|
|
|
|
|
Can anyone give me a simplest possible example for using ftp with php technology?
I will be very much thankful.
Ranjan Goyal
|
|
|
|
|
look in the php manual. the best documentation i have ever seen.
--
Raoul Snyman
Saturn Laboratories
e-mail: raoul.snyman@saturnlaboratories.co.za
web: http://www.saturnlaboratories.co.za/
linux user: #333298
|
|
|
|
|
I want a very basic working example.
e.g
Reading a file from remote machine,
displaying it on my textbox
and then on a button click to save that file in the same place.
At present I am not able to read file.
My machine no is 192.168.0.6
Below is the code that I am using
";
$fp=fopen("ftp://******:*****@192.168.0.60/ranjan/downDb.php",r);
$contents = fread ($fd, 100);//100 is file size here
echo"$contents";
echo"";
?>
Below is the error generated
Warning: fopen(ftp://...@192.168.0.60/ranjan/downDb.php): failed to open stream: FTP server reports 550 Could not get file size. in /home/small_projects/ranjan/ftp.php on line 3
Warning: fread(): supplied argument is not a valid stream resource in /home/small_projects/ranjan/ftp.php on line 4
|
|
|
|
|
from the php manual:
--
Raoul Snyman
Saturn Laboratories
e-mail: raoul.snyman@saturnlaboratories.co.za
web: http://www.saturnlaboratories.co.za/
linux user: #333298
|
|
|
|
|
Hi Raoul,
First very sorry for this delayed response.
Today, I tried the following code and I got the following error:
Fatal error: Call to undefined function: ftp_connect() in /home/small_projects/ranjan/ALLFILES/ftp.php on line 12
192.168.0.112 is IP of a folder on NT server
Code is this:
// set up basic connection
$ftp_server="http://192.168.0.112/Ranjan";
$conn_id = ftp_connect($ftp_server);
// login with username and password
$ftp_user_name="********";
$ftp_user_pass="********";
$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass);
// check connection
if ((!$conn_id) || (!$login_result))
{
echo "FTP connection has failed!";
echo "Attempted to connect to $ftp_server for user $ftp_user_name";
exit;
}
else
{
echo "Connected to $ftp_server, for user $ftp_user_name";
}
Ranjan
|
|
|
|
|
> // set up basic connection
> $ftp_server="http://192.168.0.112/Ranjan";
> $conn_id = ftp_connect($ftp_server);
first problem i see is that "http://" - remember, you are trying to connect to an FTP server... not an HTTP server...
try changing that and see what you get...
--
Raoul Snyman
Saturn Laboratories
e-mail: raoul.snyman@saturnlaboratories.co.za
web: http://www.saturnlaboratories.co.za/
linux user: #333298
|
|
|
|
|
have two div ,one is big another is small.small on the big!
the small div is under the big div when click the big div.
please help me to take small div on top for ever!
thank you !!!!!
|
|
|
|
|
you may increase z-index of smaller div, with e.g style="z-index:5000" . Bt I don't understand how you change anything with click on div... There must be something more you keep for yourself If trick with z-index doesn't help, show us some markup
regards,
David 'DNH' Nohejl
Never forget: "Stay kul and happy" (I.A.)
|
|
|
|
|
What is the difference between the two?
I know they produce the same result but why different way of doing the things and whch one is better.
<a href="#" onclick="window.open('test.html',,'width=100,height=100,scrollbars=No')">Test</a>
<a href="javascript : void(0)" onclick="window.open('test.html',,'width=100,height=100,scrollbars=No')">Test</a>
Ranjan Goyal
|
|
|
|
|
There is actually a slight difference, it just isn't that apparent. If you link to #, the page will refresh as the new window opens. Depending on the browser, the parent page may scroll back up to the top as well. If you link directly to the javascript command, the parent window is "untouched".
-
Rock on!
|
|
|
|
|
|
I have a couple of submit buttons for email and displaying and updating data in a database. Anytime I post back to the same page, a new view is created and I would have to click on the back button to go back to the previous page (which is essentially the same). Is there any way to disable this so that all postbacks to the same page just refresh the page? Thanks.
"For that one fraction of a second, you were open to options you would never have considered. That is the exploration that awaits you. Not mapping stars and studying nebula, but charting the unknown possibilities of existence." - Q (Star Trek: The Next Generation) ^ Blog
|
|
|
|
|
As far as I know, you can't do this. You have to write the code yourself, so the inputboxes are filled in again with your submitted data. You could check if the request.form("yourinput") is empty or not. If not, then fill in the value property.
Hope this helps you out.
|
|
|
|