parameter-passing

How do I pass a parameter from one page into another in wordpress

Greetings: I am trying to pass a parameter from one page into another one. How do I do this? Is there a way when someone logs into the application, I do not want them to log in twice. I want the other page to know that this user is already logged in and give him or her OK to use the other page. This is just to prevent multiple log in...

pass Node to Xerces' setParameter()

Hi all, I try pass a node as xsl stylesheet parameter to Xerces XSL Transformer transformer.setParameter("settings", nodeSettings); in xsl: But i receive the following Exception: javax.xml.transform.TransformerException: java.lang.RuntimeException: Invalid conversion of 'com.sun.org.apache.xerces.internal.dom.DeferredDocumentImpl'...

How can I pass a value from an ASPX page to another in a different domain

I have an ASPX page in my Application. ASPX pages from other applications in different domain can call this page. But how do I return a value to the calling ASPX page in a different application? How an ASPX page can return a value to calling page in a different app? ...

Passing parameter from view in a link to specify my index in Rails

What I do and it's working : *in skills_Controller.erb* : def index @skills = Skill.all end def fetch_skills(conditions) @skills = Skill.find :all, :order => 'id DESC', :conditions => conditions end def skilloffer fetch_skills ["community_id = ? AND request = ?", @current_user.community_id, f...

would ever passing a variable of an integral type to functions by reference be more efficient than by value?

I know that it's said when passing a variable of any integral type like int, double, long double, etc to a function; it should be done by value but I'm curious that from an assembly point(performance-wise or space-wise), wouldn't be there a situation when passing a variable of an integral type with a size bigger than pointers like long d...

Delphi: Pass by reference or pass by value?

In Delphi, if I have a simple class myClass and I pass an instance of it to a function with myFunction( myClass ), which is defined by function myFunction( myObject : myClass ) : Boolean... Will a copy of myObject be made? When I call methods of myObject in myFunction, will the original object be affected and modified too? ...

Quick Question: C# Linq "Single" statement vs "for" loop

I need some clarification. Are these two methods the same or different? I get a little bit confused about when the reference to an object passed in a parameter by value is updated and when a new one is created. I know if that assignment creates a new reference, but what about changing a property? Will both of these methods update the...

How to use User.Identity.Name as a parameter for SqlDataSource in ASP.NET?

For SqlDataSource I can configure the external source for the incoming paramater. For example it might be a QueryString, Session, Profile and so on. However I do not have an option to use User as a source. I know that I could provide value for the parameter in Inserting,Selecting,Updating,Deleting events. But I do not think that this is...

How NOT to pass a parameter by URL ?

Hello everybody, First sorry for my bad english, i'm french. I'll try to make me understand :) I'd like to pass a parameter from view to controller without using the url. Why? Because the parameter is a userid and I don't want somebody change it manually in the url. My code in view : <% foreach (var item in ViewData["ClientsLis...

in C++ how can I pass a static array to an object as a parameter, and modify the original array in there?

The array has to be on the stack, and I need to modify the elements. Here is what I have: Class Me { private: int *_array; void run(){ for (int i = 0 ; i < 10; ++i) { _array[i] += 100; } } public: Me(int array[]) { _array = array; } }; This is main: int array[10] = {0, 1...

is it possible to pass parameters to an assoc array?

Hello, think about an array like this: ... "key1" => some_call("val1", $params), "key2" => some_call("val1", $params), ... now i want to pass parameters ($params) when addressing my array entries $x = $array['key1'] , $params ... is there some way to do something like this? UPDATE why would i like to do this? i am using codeign...

`&:views_count` in `Post.published.collect(&:views_count)`

I saw the code from here Post.published.collect(&:views_count) I guess it equals to .collect { |p| p.views_count } But I never saw this usage before, does this have a name? Where can I find more information about it? ...

Passing parameters in the message header with a REST API

Hi, I'm developping a REST API and I need to tranport cryptograms to authenticate the message for each request in a applicative process (MAC encryption from secret keys). I was thinking about putting them in the message header to avoid adding non-data information in the message body which contains the posted/retrieved object (XML or JS...

Does GCC create typedefs for arrays passed to functions?

While debugging some C code with gdb I came across something I've not seen nor heard of before! The compiler (gcc -O0) seems to have created a new type for passing an array of vectors to a function... I think! Have a look at the code and gdb information below: /* The Vector type - nothing unusual */ typedef struct { float x,y,z; } V...

jQuery $.ajax not working with url params in IE

When i do the following: $.ajax({ type: 'GET', url: 'http://www.domain.tld/feed', dataType: 'xml', success: function(data) { ... } }); Everything´s fine in IE(8). But when i change the url option to http://www.domain.tld/?feed=myfeed IE does nothing. I think the ? is the problem, but how can i get this working in thi...

C# passing paramaters by reference.

I have the below piece of code which Prefixs a string to the start of each member of a string array. ie. ["a","b","c"] prefixed with "z" becomes ["za","zb","zc"]. private string[] Prefix(string[] a, string b) { for(int i = 0;i < a.Length;i++) { a[i] = b + a[i]; } return a; } The function works fine (although if theres a b...

ASP.NET. Is it better to pass an entire entity to a method or pass each property of this entity as parameters?

Hi, We're developing a business ASP.NET application. Is it better to pass an entire entity to a method or pass each property of this entity as parameters? What is the best practice? Case 1. Pass Customer entity to a manager - InsertCustomer(Customer cust) Case 2. Pass each property as a parameter - InsertCustomer(string name, string add...

Cost of using params in C#

Does anyone have advice for using the params in C# for method argument passing. I'm contemplating making overloads for the first 6 arguments and then a 7th using the params feature. My reasoning is to avoid the extra array allocation the params feature require. This is for some high performant utility methods. Any advice? Is it a waste o...

Any tool to determine most efficient way of passing data, by reference or by value?

For objects or primitive data with a size equal to or less than size of a pointer the most efficient passing method to a function would definitely be by value but the thing is I want to know would be there any tool capable of determining best method of passing objects of classes or primitive data with a sizes bigger than size of a pointe...

JSF- passing a parameter to valuechangelistener

Hello, I have a litte radiobutton like this : <h:selectOneRadio value="#{test.answer}" valueChangeListener="#{TestService.changeanswer}" immediate="true" id="answer"> <f:selectItem itemValue="A" itemLabel="Absolutely True"/> <f:selectItem itemValue="B" itemLabel="True"/> <f:selectItem itemValue="C" itemLabel="Partially True"/> <...