multiple

Different inputs with multiple submit buttons in html form

I want a form which has two submit buttons. The form has some hidden fields which are common while submitting both buttons. So with different buttons, I want to post a different set of inputs/values to the same target url. Something like <form method='POST' action='/method/data' > <input type="text" name="field1" /> <!--...some other ...

Handling error in multiple insert script (sql)

Hi all, I need to insert about 500 images to database at once. I have a script, that builds multiple query script: SELECT 'INSERT INTO [truvle].[dbo].[Ads_Images]([Img_adId],[Img_image]) SELECT CONVERT(INT, ' + CAST([Ad_id] AS VARCHAR) + ')' + ',(SELECT * FROM OPENROWSET(BULK N''' + [Ad_path] + ''', SINGLE_BLOB) as [somethin...

Parallel Processes Results Written To Single File

I am new to Linux and was introduced to the "&" recently. I have to run several traceroutes and store them in a single file, and I am curious if I am able to kick off these traceroutes in parallel? I tried the following but the results in the generated file, are not kept apart? Well, that is what it seems to me. traceroute -n -z 10...

Sitecore Page Preview not working with multi site setup

I have a Sitecore project with multiple websites where the Preview option is not working like expected. When i'm on an item with a presentation and click on Preview in the presentation tab i get the following error: The requested document was not found -> Requested URL: /sitecore/content//home User Name: default\Anonymous Site Name:...

Get multiple pages with a single fsockopen

Hy all. I need to get the content of multiple pages from a single domain. Now for each page I use an fsockopen connection, and I get the content of the page this way: <?php $fp = fsockopen("www.example.com", 80, $errno, $errstr, 30); if (!$fp) { echo "$errstr ($errno)<br />\n"; } else { $out = "GET /page1.html HTTP/1.1\r\n"; ...

one stylesheet for two wordpress installations

I need an easy way to load the same style sheet for two different installations of wordpress. One is at main.com and the other is at main.com/secondary. Thanks. ...

WPF - How to load text in a text-block into multiple controls upon click

Hi all, I've this requirement where: For example, a textblock has a name displayed as "Lastname, Firstname" which upon click will load two textbox controls with Firstname's value loaded into its own box and lastname's value into its own box and keep them ready for editing. While I can easily write a bunch of if conditions in my code-beh...

restrict child multiple select based on multiple select of parent with jquery

I need to create an interface that upon selection of a parent multi select, it updates a child multi select of options. It is intended that the parent multi select can have none, one or many options selected and the child element displays a union of items that both parents have (or falls back to all items). Take for example: When pare...

Multiple jQuery UI sliders, wrong slider is updated

I'm using jQuery slider for making range sliders. By moving the sliders the corresponding input text field is updated. The jquery code is: jQuery("form#filterform fieldset.text").each(function(index){ var this_slider = jQuery(this).find("#slider"); $this_slider = jQuery(this_slider); var this_text = jQuery(thi...

Zoom multiples UIImageViews inside an UIScrollView

Dear Friends, I am trying to create a small game for the iPhone with images and I want to them to zoom in when the player is pinching on the screen. I have seen the tutorials with one UIImageView. However, now that I am using multiple UIImageViews, things do not work OK. I put them in an UIView and I am trying to zoom the UIView. Howe...

Load multiple files using HTML5 and PHP

I am trying to load multiple files using HTML5. This is my code I found on some site. In the PHP code it doesn't recognize it as an array. Am I doing something wrong? Can someone show me a working solution? Thanks. index.html <form action='save.php' method='post' enctype='multipart/form-data'> <input name="uploads" type="file" multip...

Multiple search with multiplefields by default

So, there is a jqGrid, with declaration, smth like: $("#grid").jqGrid({ ... bunch of stuff ... ).searchGrid({ multipleSearch: true }); which is fine, when I click Search button, it brings me modal form with I guess first column and a dropdown of sopts: searchoptions: { sopt: ['eq', 'ne', 'cn']}. Now, i want to be able to display a cou...

Build multiple (test/prod) versions of Android APKs in Eclipse

Hi guys, I'm looking to optimize generating of slightly different APKs of the same Android app, the only difference being the API server it's using. Ideally, I'd just want my Eclipse to build 2 APKs, one with the prod server and one with the dev one. I'm even OK with having 2 Run configurations, but I haven't been able to figure out h...

Split multiple lines and input them in separate row in a database

Hi Guys, I am trying to create a php script that inputs the HTTP links pasted into a textarea into a separated row in a database. More exactly: First page is where the textarea (name=textarea-linkfield) is, links are going to be pasted here http://www.stackoverflow.com http://www.yahoo.com .... http://google.com The links are being ...

reverse match of multiple words

Thanks for reading this. Hope you can help me. When I have a Mysql table with these row values id| search ======== 1| butterflies 2| america 3| birds of america 4| america butterflies how can I tell which rows have all the words in column 'search' occuring in the string "butterflies of america", regardless of the number or order of the...

How do I post to a form and populate a select multiple?

I'm doing something a bit strange here, I'm querying data out of my local database and posintg it to Salesforce form using cURL. The data posts correctly to Salesforce. However, the select multiple is not getting the correct values selected. See $sd["location"] below in my code: //init curl $ch = curl_init(); //setup the p...

How to upload files in flex using PyAMF or PhpAMF? client side, and very little server side help needed.

Hy! I need to upload a group of images using flex with robotlegs. I need a progress bar to work when image is uploading. It might upload 1 image or more at the time. I want to know if uploading byteArray to server and then save the image is too heavy for the server. In the server side I have a method that is made by pyamf, and looks ...

Pagination and Multiple relational entity indexes with AppEngine

This is a general question on doing pagination with models containing multiple entity indexes. This is easier with an example so let us consider the example that Brett Slatkin provided in his video (http://www.google.com/events/io/2009/sessions/BuildingScalableComplexApps.html). You have your Message model (I have ignored the MessageIn...

Saving multiple models in CakePHP with saveAll()

Hello, I'm trying to build an invitation system with CakePHP. I have Invitation model which hasMany People, and Person hasOne and belongsTo Invitation. I believe the relationships are working, since my Invitation index view can properly access and display its associated People through the Invitation model. But heres what the relationship...

multiple user interface dll in MFC application

I have existing MFC SDI application that uses classic menus, now i want to add ribbons, but keep the old menu style too, with the option for the user to be able to change to whatever style he wants clasic/ribbon. Currently the UI code is placed in the exe, but I am thinking of making two MFC .dlls - one for classic and one for ribbon UI,...