|
There are 3 rows in a table. The columns of the last row are filled with alphabets. I should be able to drag any alphabet (from the last row) and drop in in any of the first 2 rows. Undoing of this move should be possible. Can anybody help me out?
|
|
|
|
|
Someone may be able to provide assistance if you give some context in which you are speaking. For example drag "alphabet" from last row and drop it in any of the first 2 rows. Where are these rows and from where are you dragging and dropping?
|
|
|
|
|
HI all!
I hope someone can point me in the right direction. Here is my delima.
Our company wants two locations to share data. The data will be stored on our web server. The program that needs to access this data will be on the local computers and needs to pointed to a lettered drive. I have a webfolder setup in "My Network Places" but cannot map the drive. Is there a good way to work around this?
Any help will be very much appreciated!
Jude
|
|
|
|
|
You have to create a network share, Network Sharing and Security, (not a "web share") on the server that hosts your web server. Also, you have to set up the proper security access.
|
|
|
|
|
OK..I've done that. How do I map it?
EX: When I go to map network drive, you get a chance to input the info. I put in "http://"our IP/the web folder/ the shared folder, but get a "Can not be found" error.
Jude
|
|
|
|
|
You can't use http:// to map a drive. You have to specify it in the format as \\ipaddress\shareName
I hope you're security is setup tight and the machine is patched up as current as 1 minute ago because you're doing something that is VERY dangerous over the Internet out in the open.
Depending on how sensitive the data is, you'd probably be better served by setting up a VPN between the two networks.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Jude,
I am sorry! I was called away before completing my answer. Dave is right! If you share data via the internet this way, you are exposing your web server to security breaches. As Dave said, VPN will serve you better.
|
|
|
|
|
Thanx for all the input. I setup a VPN on the server, but cannot connect. Here is what I choose step by step:
Remote Access
VPN
The network card that is connected to the router-->Modem
From a selected range (192.168.1.220-222)(way outside of dhcp request)
Use routing and remote access
Then I get this message:
To support the relaying of DHCP messages from remote access clients,you must configure the proerties of the DHCP Relay Agent with the ip addressof you DHCP server.
I inputed the ip address of our dhcp server.
Then I created a VPN connection on the client, but it will not connect (Error 800)??
I know this is asking alot, and I am all but googled out. Please help me o great ones...
Jude
|
|
|
|
|
I am a programmer with a little networking knowledge (enough to get by). You probably get a useful response from a non-programming discussion board.
|
|
|
|
|
All help is greatly apporeciated..I am in the same boat as you...
Jude
|
|
|
|
|
I'm trying to do some form validation that involves looping through all elements in a form. It works perfectly in FireFox, but totally chokes in IE7. It seems to be that the $Form.elements.length value is not returning a number.
I've written a little test function to simulate the error.
<br />
function validateForm()<br />
{<br />
alert(document.forms.length);<br />
var numElements = document.forms[0].elements.length;<br />
alert(numElements);<br />
}<br />
First alert shows: 1
Second alert shows: [object]
Anyone seen this happen before?
Thanks a lot.
|
|
|
|
|
try something like this
function checkForm()
{
var frm = document.getElementById('form1');
var strError = 'The following fields are required:\n';
var bValid = true;
var child;
for(var i = 0; i < frm.childNodes.length; i++)
{
child = frm.childNodes.item(i);
if(child.nodeType == 1)
{
if(child.tagName.toString().toLowerCase() == 'input')
{
if(child.type.toString().toLowerCase() == 'text')
{
if(child.value == '')
{
strError += '\n'+ child.id.toString();
bValid = false;
}
}
}
}
}
if(!bValid)
alert(strError);
return bValid;
}
Works in both FF and IE7. It only checks input text's at the moment so you'll need to change it so that it's a bit more useful, but it should get you going.
HTH
|
|
|
|
|
Thanks very much for the reply, but I guess my main question here is why $Form.elements.length is not returning a number. This has always worked before....
|
|
|
|
|
Wierd, just done a tiny test myself using your code and get a number as you'd expect from elements.length
Here is the code I ran:
<form id="form1" name="form1" onsubmit="return checkForm();">
<input type="text" id="Text1" />
<input type="text" id="Text2" />
<input type="text" id="Text3" />
<input type="text" id="Text4" />
<input type="submit" />
</form>
<script>
function checkForm()
{
alert(document.forms.length);
var numElements = document.forms[0].elements.length;
alert(numElements);
return true;
}
</script>
The first alert gives "1" and the second gives "5". If your form isn't too huge perhaps you could paste in the code that's giving you this wierd behaviour.
HTH
|
|
|
|
|
Well, I feel dumb now. I had a textbox in the form named "length".
Thanks for all your help.
|
|
|
|
|
hehe - one of those
|
|
|
|
|
I guess let me give you a bit of background...I am developing a image gallery for a website. From a main page the user chooses an Album which sends them to the ViewAlbum.aspx. On the ViewAlbums.aspx page there is an image control <asp:image id="imgCurrent" ...=""> which defaults to the first image in the album. To the right there are thumbnails of each image in the album.
What I am trying to do is have the user click on the image thumbnail and have it update the imgCurrent.ImageUrl property (and have the picture they selected then show in the Image control). I have literally been at this for hours and it's just getting ridiculous. Has anyone done something like this (I can't imagine it's not common practice).
ANY help would be greatly appreciated!
Thanks again!
John
|
|
|
|
|
Is this not an ASP.NET question ?
Surely you're saying that you have thumbnails, which generate a postback, and then an event handler which sets this URL ?
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
I put it in the general web development because I thought I might need to use some javascript scripting to get it done. I've tried so many things without any luck, I thought maybe different perspectives is what I need.
Yes, I have thumbnails. Having them generate a postback that I can access my codebehind functions from has been my problem and is where I'm looking for some guidance.
Thanks Again!
|
|
|
|
|
I did a quick google, and it doesn't look like the asp:Image tag has an OnCLick event. I could be wrong there, I expected it would. If it does, then you just need to wire that up. If not, you can pass an onclick through to the client, just have it return to the same page, but pass the id of the image on the URL.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
I was hoping not to have to do that, but I guess if it's the only way, it's the way I'll have to do it.
Thanks for your help!
|
|
|
|
|
Could you use an ImageButton instead?
|
|
|
|
|
How do you mean? Use an ImageButton as the main image or as the thumbnails?
I'm guessing you mean as the thumbnails. In which case my question would be, can I create them at run time and give them a function to call where I can pass parameters?
|
|
|
|
|
Well this is what I ended up doing. I think it is along the lines of what Paddy had suggested...
<img alt="" src="<%=GetImageThumbnailUrl(drimage.Item("ImageId")) %>" onclick="javascript:window.location.href='ViewAlbum.aspx?AlbumId=<%=sAlbumId%>&CurrentImage=<%=drimage.Item("ImageId")%>'"/>
It works but I don't like that the whole page has to reload. I guess that's the only way to do it, if anyone knows of a better way to do this than what I ended up doing then please let me know!
Thanks to ALL of you who helped soooo much!
Thanks again!
|
|
|
|
|
Hello,
does anyone know if it possible to read data from a javascript form and write it into a database (Access for example)? I have an online form that i used with cgi-mail and now i need to save the info on a database, any help would be appreciated...
Thanks
Rona
|
|
|
|