Questions tagged [param]

304 questions
0
votes
1 answer

How do I get a parameter's value from a CGI Perl app?

I am trying to get value from a form. My HTML is as below: I am trying to get the value using: my $clientId2 = param('new_id'); But I am getting $clientId2 as empty. Its working for…
mysteriousboy
  • 159
  • 1
  • 7
  • 20
0
votes
1 answer

How do I get selected value from drop down box in Perl CGI

I am populating the drop down menu from database. And when I submit the form I am getting empty string in selected option. Here's my code any help will be appreciated. I have selected the first option as default any help. print "
Name:…
mysteriousboy
  • 159
  • 1
  • 7
  • 20
0
votes
1 answer

How to assign a bean message to a jsp parameter

How can I assign a bean message, for example: to a JSP parameter? I tried:
user1802439
  • 2,651
  • 3
  • 18
  • 21
0
votes
1 answer

Passing an object in URI jquery and accessing it in php

I have a quick question here. I would like to pass an object through the uri. So here is a set of data I am using already something like this: a = 'a'; b = 'b'; obj = { d : 'd', c : 'c' } //so now URLencode var data = '?a=' + URLEncode(a); var…
Philll_t
  • 4,267
  • 5
  • 45
  • 59
0
votes
1 answer

Tire pass param to model and use this param in search

Im trying to exclude current_user.id from my Tire search results but cannot figure how to pass a param to Tire and use that instead of a fixed value for search. How could one pass the current_user.id to the model and exclude it in search…
Rubytastic
  • 15,001
  • 18
  • 87
  • 175
0
votes
1 answer

perl cgi::param error with single plus sign in Taint mode

I work on a website based on Perl CGI. It's run with Perl -T (Taint mode). I noticed that a text input contains just a plus sign and nothing else ("+") causes CGI::param() to give this error: Insecure dependency in require while running with -T…
yjl101
  • 17
  • 7
0
votes
3 answers

jQuery Pass url parameter to a seperate functions parameter?

PHP dev needing JS help! I'm pretty new to JS and can't figure this out. I have a small jQuery plugin gSearch http://gsearch.scottreeddesign.com/index.html That performs a Google Search within your page. It isnt built with POST/GET capabilities, you…
Charles Butler
  • 573
  • 3
  • 15
0
votes
1 answer

Rails - Redirect URL with params (routes)

I'm trying to create a redirect for anyone that has parameters in a certain url, to the homepage. I currently have this in my routes: match "/pr?campaign=#{'params[:campaign]'}" => redirect("/") but it's not recognising it properly, if i put…
user1738017
  • 609
  • 2
  • 12
  • 29
0
votes
1 answer

Get first row from rails param

I've got an object/param that I'm saving into my database. But while I do that I'd like to get the first row in that object to do some Javascript things with. So what I'm receiving in my view from the Javascript object(Which is being send by an AJAX…
CaptainCarl
  • 3,411
  • 6
  • 38
  • 71
0
votes
1 answer

Primefaces file upload auto="true": preserve images preview

Have Primefaces file-upload component with auto="true" param: ... ... When auto="true",that after image been uploaded,preview of image disappeared. Is it…
sergionni
  • 13,290
  • 42
  • 132
  • 189
0
votes
1 answer

Lift Framework - problems with passing url param to Snippet class

I am trying to do a simple case of /author/ and get the Lift to build a Person object based on the id passed in. Currently i have an Author snippet class Author(item: Person) { def render = { val s = item match { case Full(item)…
AdiFatLady
  • 368
  • 1
  • 6
  • 18
0
votes
3 answers

How to marshalling a function with (char* param[]) in C#

I have a function in a native dll whose function looks like this int GetActiveNames(char* names[]); How do I create my PInvoke wrapper method in C# to the above function which returns me an array of strings/characters? To be more descriptive.. I…
0
votes
1 answer

How to add parameters to this javascript/jquery function?

This script allows you to click an element all you want, but when you click anything but that element, it fades something out. In my code below I can click all I want inside of $('.wrapper') and nothing happens, but when I click anything outside of…
android.nick
  • 11,069
  • 23
  • 77
  • 112
0
votes
1 answer

check if param has value fails ( NoMethodError (undefined method `[]' for nil:NilClass): )

Using below search method Im unable to check if the params exists. It always throws an NoMethodError (undefined method `[]' for nil:NilClass): The if params['/people'][:age_from].present? && params['/people'][:age_to].present? if statement and the…
Rubytastic
  • 15,001
  • 18
  • 87
  • 175
0
votes
0 answers

Creating lparam for postmessage

I am having trouble with creating lparam for postmessage. I know that application gets such key: WM_KEYDOWN nVirtKey: VK_CONTROL cRepeat:1 ScanCode: 1D fExtended:0 fAltDown:0 fRepeat:0 fUp:0 WM_KEYDOWN nVirtKey: VK_LEFT cRepeat:1 ScanCode: 4B…
Immons
  • 257
  • 1
  • 11