I have a string of the form "a-b""c-d""e-f"...
Using preg_match, how could I extract them and get an array as:
Array
(
[0] =>a-b
[1] =>c-d
[2] =>e-f
...
[n-times] =>xx-zz
)
Thanks
I'm learning Javascript right now. Can anybody tell me why the second code block traces a empty path for -launch(this)- but using the first code block it gives me the right path?
"<form action='"+launchwebsite+"/subsite/' method='post' target='_blank' onsubmit='launch(this)'>"
and this not:
"<a onclick='launch(this)' title='launch' class='iblack' /></a></div>"
Best
Uli
I have a form in Swing with a lot of textfields receiving data. The idea is when a button is clicked, the app gathers all the data from the textfields at once. Do you know a good practice for this? Or is it necessary to gather the data textfield by textfield?
I am new to javascript and jquery.
I have written some javascript code for some client validation.
document.getElementById(spnError).style.display = 'block';
This is how I am showing a span if there is some validation issues in the form. I want to use Jquery to show this span. I would like to slide it down slowly.
I have a background worker that runs and looks for stuff, and when it finds stuff, I want to update my main WinForm. The issue that I'm having is that when I try to update my WinForm from my background worker, I get errors that tell me I can't modify things that were made outside of my background worker (in other words, everything in my form).
Can someone provide a simple code example of how I can get my code to work the way I want it to? Thanks!
Is this iteration the best?
(Pi^2)/12 = 1 - 1/4 + 1/9 - 1/16 + 1/25 etc.
-For converging faster?
If not please answer with the iteration -preferably in the form above (an example) -not a splat of algebra ...
I'm doing this to find Pi to 1,000,000,000 places online.
Hi,
I am trying to access Attachment names form "$File" (Lotus Notes).
NotesView inbox = _serverDatabase.GetView("($Inbox)");
NotesDocument docInbox = inbox.GetFirstDocument();
NotesItem file = docInbox.GetFirstItem("$File");
String fileType = file.type.ToString();
( getting fileType value "ATTACHMENT" for mail containing attachments)
I am not getting solution given in:
http://stackoverflow.com/questions/1361695/how-to-access-attachments-from-notes-mail
I have a scenario where I need to send a series of data across 2 clients.
The data includes Serialized XML that will contain commands that the other client will need to react to.
I will also need to send images across the wire as I need to provide a chat facility in the form of video/audio chat.
I would like a single communication medium for both, as the number of messages/commands might be a few.
WCF or Sockets?
I have a GridView bound to an DataSource query with parameters tied to form controls.
What is the standard / best-practices way to handle optional query parameters?
I have read and executed following instructions found on GWT pages
But somehow the "[none]" form does not return the correct output, rather it returns the default output.
While all the other like [one], [two], [many] work perfectly fine.
Has anyone come across this problem, and how can I solve it?
How safe is it to use Silverlight in production for a graphic form?
Is it installed on most computers, do to Windows Update feature?
If so, which version is it installed? What is the safest target version?
I have seen that there many books titled
1)Build Ecommerce website in php
2)Build shopping cars in php or asp.net
Is there any book which explains from scratch how to start building a website in java using any frame work or with servlets or jsp
like
1)Basic form with logins and registration
2)building catalogue system
3)Building shopping cart
4)Building newletters system
So i can strat reading it
Hi
dispite some posts on this forum and others i cannot find something that tells me how to set the focus on a text box.
I have a userControl with many labels and textBoxes.When the form is loaded I want the a particular textBox to have the focus.
I have set the tabIndex but that didnt seem to work.
Any suggestions
The application is simple, an HTML form that posts to a Perl script. The problem is we sometimes have our customers upload very large files (gt 500mb) and their internet connections can be unreliable at times.
Is there any way to resume a failed transfer like in WinSCP or is this something that can't be done without support for it in the client?
I have a html form where visitors can fill and send me some information, as an e-mail. It sends like this:
$body = print_r($_POST, true);
mail ($to, $subject, $body, $headers);
When they write abc'def I get abc\'def
What is this additional \? How I can prevent it?
The company I work for has windows xp installed and under group policy, I am not able to change the desktop appearnce or themes. Because admin has disabled the appearance and themes tab via group policy registry. I am looking for an application or Vb.net form which is able to switch the appearance and themes under limited access xp account. Your help would be higly appreciated..
I need my application to auto-complete on a company name, but also fill in a hidden form field with the ID of that company selected.
I believe it's possible to return pair values, with the pipe separator, such as........
Microsoft|10
Oracle|20
Sybase|30
And indeed this seems to work, but I don't know how to access the 2nd argument.
I would like to be able to display the version of the .NET framework a windows form or wpf project is targeted at and display it in the title bar of the app.
Is there a way I can do this?
Thanks
How can i define each menu item in different line?
Right now if I'm adding 4 items they will get the form of 2X2. Is there a way to add them differently? Like 1 item and 3 below it? or 1X4 ?
Using an array like this:
$data = array
(
'host' => 1,
'country' => 'fr',
)
I would like to create a MySQL query that uses the values of the array to form its WHERE clause like:
SELECT *
FROM table
WHERE host = 1 and country = 'fr'
How can I generate this query string to use with MySQL?
Does a .cs(C#) file compile under a .vbproj(VB.NET project) ? (VS 2005, .NET 2)
Say I have Animals.vbproj (namespace Animals)
I have Wolf.vb, Tiger.vb, Cat.vb, and a Human.cs
Could I use Animals.Human from a external AnimalsForm.vb form? Why?
Please excuse me if this is a newbie question. I am new to this.
I would like that a user fill out a form with their info and, just before clicking submit, there to be a summary of details area where they confirm their details are correctly entered.
So is it possible for me to "bind" specific inputs to specific spans or divs and as they type (or maybe onBlur?) the span would reflect what is written in the respective input???
Hi
I have designed a chat application where different users can create the account, but I do not know how to send a confirmation email to the users. Since I collect their e-mail address in the registration form, how can I send mail to those addresses in Java?
I am trying to install balder - the carrier wave tree
i am getting some errors including:
not seeing the form elements for adding photos.
getting an error message "command exiftool not found"
I think I've installed all the gems and software already.
Anyone here good with troubleshooting code? also - i've got some screenshots handy if you need them. stackoverflow wont let me post images yet :/
also, are there any other alternative photo galleries written for ROR?